merge_list {SUNGEO} | R Documentation |
Merge list of tables on common variable(s)
Description
Function that finds a set of common columns in a list of tables, and merges the tables on these columns.
Usage
merge_list(lst)
Arguments
lst |
List of tables to be merged. List object. |
Value
data.table
object
Examples
# Merge list of three tables with different common variables
## Not run:
A <- data.table::data.table(month=month.name,year=rep(1991:1992,each=12),A=rnorm(24))
B <- data.table::data.table(year=c(1991,1992),B=rbeta(2,1,1))
C <- data.table::data.table(month=month.name,C=runif(12))
out_1 <- merge_list(list(A,B,C))
out_1
## End(Not run)
[Package SUNGEO version 1.3.0 Index]