select_random {rexer}R Documentation

randomly selects the number of elements. If null, returns them all randomly reordered.

Description

randomly selects the number of elements. If null, returns them all randomly reordered.

Usage

select_random(vector, n = NULL)

Arguments

vector

A vector of strings.

n

An integer, number of elements to select.

Value

A vector of strings.


[Package rexer version 1.0.0 Index]