Skip to contents

Materialize a synthetic-data specification

Usage

materialize.synthetic(
  spec,
  n = NULL,
  seed,
  rng.policy = c("named.stream.v1", "legacy"),
  validate = TRUE
)

Arguments

spec

A synthetic_spec.

n

Sample size, or NULL for fixed-size sampling.

seed

Scalar whole-number seed.

rng.policy

Versioned RNG policy.

validate

Whether to validate the returned dataset.

Value

A synthetic_dataset.

Examples

spec <- synthetic.registry.spec("G1")
materialize.synthetic(spec, n = 20L, seed = 1L)
#> <synthetic_dataset> g1.ambient.polynomial.v1__spec7c7a6177e1f65b4ad3cca9692c7e467d63efbe5d5394e8dc8d4306caace59b10__n20__seed1__rngnamed.stream.v1
#>   n=20  intrinsic=2  ambient=2  truth=population