Generate a vector or table from a custom template

generate(template, size, columns = NULL)

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

Value

A vector or table generated from the specified template