powered by
list
data.frame
Unite Columns of a Table in a list of data.frame.
ls_unite(adam_db, tab, cols, sep = ".", new = NULL)
list of data.frames object with a united column.
data.frames
(list of data.frames) to be transformed.
(string) the name of a table in the adam_db object.
string
adam_db
(character) the name of the columns to unite.
character
(string) the separator for the new column name.
(string) the name of the new column. If NULL the concatenation of cols separated by sep is used.
NULL
cols
sep
db <- list(mtcars = mtcars, iris = iris) x <- ls_unite(db, "mtcars", c("mpg", "hp"), new = "FUSION") x$mtcars
Run the code above in your browser using DataLab