I have a set of 12 data frames (DF1, DF2,... DF12) with a similar format like this:
> DF1
# A tibble: 12 x 6
month mean max min sd n
<chr> <chr> <chr> <chr> <chr> <int>
1 January 1.22 x x x x
2 February 2.23 x x x x
3 March 4.86 x x x x
4 April 7.82 x x x x
5 May - - - - x
6 June - - - - x
7 July - - - - x
8 August - - - - x
9 September - - - - x
10 October - - - - x
11 November - - - - x
12 December - - - - x
The data frames are always similar (12X6) and the column names too (month, mean, max, min, sd, n). How can I do to combine the 12 data frames horizontally to obtain something like this (with the names of the DF above) :
"name of the DF1" "name of the DF2" "name of the DF3" ....
month mean.x max.x min.x sd.x n.x mean.y max.y min.y sd.y n.y
1 January - - - - - - - - - -
2 February - - - - - - - - - -
3 March - - - - - - - - - -
4 April - - - - - - - - - -
5 May - - - - - - - - - -
6 June - - - - - - - - - -
7 July - - - - - - - - - -
8 August - - - - - - - - - -
9 September - - - - - - - - - -
10 October - - - - - - - - - -
11 November - - - - - - - - - -
12 December - - - - - - - - - -
I have a list containing my 12 data frames :
var_names <- ls(envir = globalenv(), pattern = "^Final_analysis")
DF<- mget(var_names)
kable()
like functions. - Paul