I have found read.csv("file.csv")$V1
that may help to split exported table into columns but my data is organised in a row-by-row fashion, so I would like to record elements to vector sequentially from element[1][1] ->...->element[n][n]
. Any thoughts how it could be accomplished in R?
Update: Once imported mydata looks like:
dat <- matrix(1:27, nrow = 3)
dat
[,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9]
[1,] 1 4 7 10 13 16 19 22 25
[2,] 2 5 8 11 14 17 20 23 26
[3,] 3 6 9 12 15 18 21 24 27
Desired output would be vector: c(1, 2, 3, 4, 5, 6, 7.....)