Description Usage Arguments Details Value Examples
Takes any dataset, checks format of each variable and based on distributions of the original variables randomly samples into a new dataset n times.
1 | sampleUnivariate(inputData, n, dateFormat = "%Y%m%d")
|
inputData |
dataset that you want to sample from |
n |
number of rows in output/simulated dataset |
dateFormat |
format of the date variable(s) (if one exists) in the original dataset. Default is "YYYYMMDD." A set of formats can be input with c(). |
Returns distributionally similar dataset with user-specified number of rows
A dataset with n rows that is distributionally similar to input dataset.
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.