ct: [R] Pasting excell spreedsheet into notepad for R
>
> Hi all,
>
>
> Does anyone know how to export an excell spreedsheet into notepad in R
> format as a linear vector as opposed to columns? I.e. 2,3,4,5,6,7 etc.
>
> Thanks,
> Mary
>
>
>
> --
> View
Hi all,
Does anyone know how to export an excell spreedsheet into notepad in R
format as a linear vector as opposed to columns? I.e. 2,3,4,5,6,7 etc.
Thanks,
Mary
--
View this message in context:
http://r.789695.n4.nabble.com/Pasting-excell-spreedsheet-into-notepad-for-R-tp4674568.html
Sent
Hi,
May be this helps:
dat1<- as.data.frame(matrix(1:30,6,5))
lapply(seq_len(ncol(dat1)),function(i) dat1[,i])
[[1]]
[1] 1 2 3 4 5 6
[[2]]
[1] 7 8 9 10 11 12
[[3]]
[1] 13 14 15 16 17 18
[[4]]
[1] 19 20 21 22 23 24
[[5]]
[1] 25 26 27 28 29 30
#from excel dataset (the same data)
library(X
3 matches
Mail list logo