Learn R Programming

rexer (version 1.0.0)

select_random: 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)

Value

A vector of strings.

Arguments

vector

A vector of strings.

n

An integer, number of elements to select.