generate: Generate a vector or table from a custom template

Description Usage Arguments Value

View source: R/generate.R

Description

Generate a vector or table from a custom template

Usage

1
2
3
4
5
6
7
generate(
  template,
  size,
  columns = NULL,
  table_type = getOption("synthetic_default_table_class"),
  seed = runif(1)
)

Arguments

template

column or table template that you want to use to create your vector or table

size

desired size of the resulting vector or table

columns

used to select specific columns from a table template. Can be a character vector with column names or an integer vector with the column index

table_type

specific type of table to return, can be one of 'data.table' or 'tibble'

seed

Seed used for generation.

Value

A vector or table generated from the specified template


fstpackage/syntheticbench documentation built on Jan. 23, 2020, 10:13 a.m.