combineNamedTables: Creator of long data that preserves individual table...

Description Usage Arguments Value

Description

combineNamedTables takes a (named) list of data tables and interprets each value in names(dts) as a constant value that should be added as newCol for each observation in each element of dts. That is, each table in dts gets a constant value for newCol. That value is the key/name in the dts list that maps to the table. The tables are then combined row-wise to create long data, but original table identity is preserved in newCol.

Usage

1
combineNamedTables(dts, newCol = "id")

Arguments

dts

Named list of data tables to combine.

newCol

Name for the new field to create in each table.

Value

Combined (long) data table.


vreuter/SwissR documentation built on May 14, 2019, 11:29 a.m.