sampleUnivariate: Univariate sampling of variables through a dataset

Description Usage Arguments Details Value Examples

Description

Takes any dataset, checks format of each variable and based on distributions of the original variables randomly samples into a new dataset n times.

Usage

1
sampleUnivariate(inputData, n, dateFormat = "%Y%m%d")

Arguments

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().

Details

Returns distributionally similar dataset with user-specified number of rows

Value

A dataset with n rows that is distributionally similar to input dataset.

Examples

1

CDCgov/DemographySpawnR documentation built on Aug. 5, 2020, 7:41 p.m.