sampler: Sample a categorical or numeric vector using random or...

Description Usage Arguments Value

View source: R/sampler.R

Description

This is intended to be used for synthetic data generation.

Usage

1
sampler(x, prop, seed)

Arguments

x

The vector.

prop

Random sampling when prop = TRUE. Else, uniform sampling is used.

seed

Seed for sampling.

Value

A sampled vector of the same length.


talegari/forager documentation built on May 3, 2019, 4:01 p.m.