select_random: randomly selects the number of elements. If null, returns...

View source: R/select.R

select_randomR 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.


rexer documentation built on May 29, 2024, 2:23 a.m.