sample_fct {random.cdisc.data} | R Documentation |
Create a Factor with Random Elements of x
Description
Sample elements from x
with replacement to build a factor.
Usage
sample_fct(x, N, ...)
Arguments
x |
( |
N |
( |
... |
Additional arguments to be passed to |
Value
A factor of length N
.
Examples
sample_fct(letters[1:3], 10)
sample_fct(iris$Species, 10)
[Package random.cdisc.data version 0.3.15 Index]