dflst2df: Catenate a list of data.frames vertically to a single...

Description Usage Arguments Value

View source: R/common_tools.R

Description

Assumes equal variables for all datasets! Output has columns: <variables>, "dataset" Preserves list element names in column "dataset". For a more generic approach see dflst2dfmelt (uses reshape::melt(df_lst))

Usage

1
dflst2df(df_lst, id_var_name = "dataset")

Arguments

df_lst

[1,m] list of data.frames, A list of data.frames to process

id_var_name

string, Column name for the dataset id variable

Value

A data.frame with elements of df_lst catenated vertically, An extra column with dataset id is added.


cocoreg documentation built on May 31, 2017, 5:18 a.m.

Search within the cocoreg package
Search all R packages, documentation and source code