rbind_df_in_list: Rowbind dataframes, which are elements of a named list

Description Usage Arguments Value Examples

View source: R/rbind_df_in_list.R

Description

Rowbind dataframes, which are elements of a named list

Usage

1

Arguments

x

a named list, that contain dataframes that have columns with the same names.

Value

A data frame.

Examples

 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

GegznaV/spMisc documentation built on April 26, 2020, 5:59 p.m.