Learn R Programming

SciencesPo (version 1.02.12)

joinLists: Join a list of data frames

Description

Recursively join data frames

Usage

joinLists(x, ...)

Arguments

x
A list of data frames
...
Arguments passed onto merge

encoding

UTF-8

Examples

Run this code
mtcars$cars <- row.names(mtcars)
df1 <- mtcars[, c(1:2, 12)]
df2 <- mtcars[, c(3:4, 12)]
df3 <- mtcars[, c(5:6, 12)]
joinLists(x = list(df1, df2, df3), by = "cars")

Run the code above in your browser using DataLab