mergeDTs: Merge many data.tables together

View source: R/mergeDTs.R

mergeDTsR Documentation

Merge many data.tables together

Description

Take many data.tables and merge on and ID column, extracting a single column from each data.table as the column of interest

Usage

mergeDTs(data_lsdt, mergeCol_v, keepCol_v = NULL, ...)

Arguments

data_lsdt

list of data.tables to merge

mergeCol_v

which column from all of the data.tables to use to merge

keepCol_v

which column from all of the data.tables to use as the column of interest. If NULL, use all columns

...

extra parameters passed to merge. So far all = T and sort = F unless changed here.

Value

data.table with ncol == length(data_lsdt) + 1. Column names are names of list, or defaults to V1, V2,...


weshorton/wrh.rUtils documentation built on Oct. 28, 2024, 7:24 a.m.