merge_df_list: Merge a list of dataframes or matrices

Description Usage Arguments Value Examples

View source: R/merge_df_list.R

Description

This is a wrapper function based on the merge_by_rownames function in cellwrangler for merging multiple dataframes or matries by their rownames

Usage

1
merge_df_list(df_list, all.x = TRUE, all.y = TRUE, sort = FALSE)

Arguments

df_list

a list of dataframes or matrices

all.x

logical; if TRUE, then extra rows will be added to the output, one for each row in x that has no matching row in y. These rows will have NAs in those columns that are usually filled with values from y. Defaults to TRUE

all.y

logical; analogous to all.x

sort

logical; if TRUE, result will be sorted by columns. Defaults to FALSE

Value

A merged dataframe or matrix with the appropriate rownames

Examples

1
2
dataframes_list <- list(dataframe1,dataframe2,dataframe3,dataframe4)
merge_df_list(dataframes_list)

jacobheng/cellwrangler documentation built on Aug. 12, 2019, 6:49 a.m.