join_df: Join dataframes

View source: R/functions.R

join_dfR Documentation

Join dataframes

Description

Given a list of data.frame or data.table, it outputs a data.table by merging them together

Usage

join_df(dfList, setCol = TRUE, setNAtoZero = T, ...)

Arguments

dfList

A list of data.frame or data.table

setCol

Whether to add a 'set' column for each input data as an indicator of data origin. When TRUE, a new column (set1, set2, etc) is added to each input data; when FALSE, nothing is added. Alternatively, one can provide a character vector to be used as the names of the indicator columns. The elements of the indicator columns are all '1's.

setNAtoZero

If TRUE, the NAs in the indicator columns are set to '0'.

...

The parameters passed to data.table::merge() directly

Value

A data.table object


fortune9/ZZMisc documentation built on July 1, 2022, 9:43 a.m.