r_dummy {wakefield} | R Documentation |
Generate Random Dummy Values
Description
Generate random values from a wakefield variable function.
Usage
r_dummy(fun, n, ..., prefix = FALSE, rep.sep = "_")
Arguments
fun |
A wakefield variable function. |
n |
The number of rows to produce. |
prefix |
logical. If |
rep.sep |
A separator to use for the variable and category part of names
when |
... |
Additional arguments passed to |
Value
Returns a tbl_df
.
See Also
r_list
,
r_data_frame
,
r_series
Examples
r_dummy(sex, 10)
r_dummy(race, 1000)
r_dummy(race, 1000, name = "Ethnicity")
[Package wakefield version 0.3.6 Index]