vector_template: Create a template for creation of a vector with custom...

Description Usage Arguments Value

View source: R/vector_template.R

Description

Create a template for creation of a vector with custom distribution

Usage

1
vector_template(metadata, generator, print_method = NULL)

Arguments

metadata

data needed by the generator function to create a synthetic vector

generator

function with signature f(metadata, length) that generates a vector from the metadata and the size

print_method

function with signature f(metadata) that prints the vector template description. Will be used when print() is called.

Value

an object of class 'columntemplate' that can be used with generate() to generate vectors according to the characteristics stored in metadata


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