lst2df: List of data.frames to single data.frame conversion

Description Usage Arguments Value Author(s) Examples

Description

conversion of list of data.frames to single data frame. Can be added aditional column with data.frame names

Usage

1
lst2df(lst, nms = names(lst))

Arguments

lst

list of data.frames for conversion

nms

names of data.frames that will be added as additional column By default sets names(lst)

Value

joined data.frame with additional column

Author(s)

Krunoslav Juraic

Examples

1
2
3
4
5
6
7
 df1 <- data.frame(a = c(0,1,2), b = c(10,11,12))
 df2 <- data.frame(a = c(110,111,112), b = c(1110,1111,1112))
 lst <- list()
 lst[[1]] <- df1
 lst[[2]] <- df2
 names(lst) <- c("DF1", "DF2")
 lst2df(lst, names(lst))

kjuraic/listdfutil documentation built on May 20, 2019, 10:25 a.m.