Learn R Programming

synthesizer (version 0.3.1)

synthesize: Create synthetic version of a dataset

Description

Create n values or records based on the emperical (multivariate) distribution of y.

Usage

synthesize(y, n = NROW(y))

Value

A data object of the same type and structure as y.

Arguments

y

[vector|data.frame] data to synthesize.

n

[integer] Number of values or records to synthesize.

See Also

Other synthesis: make_synthesizer()

Examples

Run this code
synthesize(cars$speed,10)
synthesize(cars)
synthesize(cars,25)

Run the code above in your browser using DataLab