join_multiple_data_frame: Join a list of data frame

Description Usage Arguments Value Examples

View source: R/join_multiple_data_frame.R

Description

A wrapper to Reduce and merge in base R. Generalize to handle a list of data frames. Currently, there is an assumption that the name of the key column is the same for all data frames in the list

Usage

1
join_multiple_data_frame(dfs, key, join_type)

Arguments

dfs

A list of data frames.

key

A character vector to specify which column(s) to use as join key(s).

join_type

A string that specifies the join type. The options are: inner, left, right, outer

Value

A single data frame after joining each individual data frame in dfs.

Examples

1
join_multiple_data_frame(list(df1, df2, df3), key = "sale_id", join_type = "inner")

antchau/glider documentation built on Dec. 1, 2020, 9:23 p.m.