In the character matrix the data frames appear one below the other. Each data frame has a header and each data frame is separated from the following data frame by an empty row.
Examples
data_frames <- list(
data.frame(a = 1:3, b = 2:4),
data.frame(a = 1:5, b = 2:6, c = 3:7)
)
dataFramesToTextMatrix(data_frames)
#> [,1] [,2] [,3]
#> [1,] "a" "b" ""
#> [2,] "1" "2" ""
#> [3,] "2" "3" ""
#> [4,] "3" "4" ""
#> [5,] "" "" ""
#> [6,] "a" "b" "c"
#> [7,] "1" "2" "3"
#> [8,] "2" "3" "4"
#> [9,] "3" "4" "5"
#> [10,] "4" "5" "6"
#> [11,] "5" "6" "7"