I have two lists containing multiple dataframes listA
and listB
. The first list has 5 dataframe, and the second list has 3 dataframe. I want to form a third list listC
where it contains the dataframes from both list such that I will have 8 dataframes in total in listC
. I tried using merge()
, but it didn't seem to work.
The function to use is append()
:
df <- data.frame(v1 = c(1,2))
l1 <- list(df, df, df, df)
l2 <- list(df, df)
l3 <- append(l1, l2)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.