Description Usage Arguments Value Examples
View source: R/rbind_df_in_list.R
Rowbind dataframes, which are elements of a named list
1 |
x |
a named list, that contain dataframes that have columns with the same names. |
A data frame.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | LIST <- split(chickwts, chickwts$feed)
new_DF <- rbind_df_in_list(LIST)
head(chickwts)
# weight feed
# 1 179 horsebean
# 2 160 horsebean
# 3 136 horsebean
# 4 227 horsebean
# 5 217 horsebean
# 6 168 horsebean
head(new_DF)
# .group weight feed
# 1 casein 368 casein
# 2 casein 390 casein
# 3 casein 379 casein
# 4 casein 260 casein
# 5 casein 404 casein
# 6 casein 318 casein
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.