list_table: Convert list to table which, optionally, is appended to...

Description Usage Arguments Value Examples

Description

Convert list to table which, optionally, is appended to existing table.

Usage

1
2
list_table(list_name, var_name, argument = "space", merge = FALSE,
  old = NA)

Arguments

list_name

List name [character]

var_name

Name of variable which contains the header of the generated table (if merge==T and var_name in names(old)) -> the system time is appended to var_name to ensure column name uniqueness) [character]

argument

List elements which equal this string are converted into empty rows in the final table (see list_space) [character]

merge

Whether or not to merge the generated table with an existing [logical]

old

Path to existing csv file with which generated table is to be merged if merge==T [path]

Value

Generated table [data.table]

Examples

1
2
3
4
sample_list <- list()
sample_list$nfold <- 3
sample_list$test_prop <- 0.3
sample_list_dt <- list_table(sample_list, var_name="sample_run", merge=F )

ClaraMarquardt/huhn documentation built on May 10, 2019, 12:53 p.m.