-help-boun...@r-project.org] On Behalf Of delnatan
Sent: Saturday, October 24, 2009 8:32 PM
To: r-help@r-project.org
Subject: [R] Importing data from text file with mixed format
Hi,
I'm having difficulty importing my textfile that looks
something like this:
#begin text file
Timepoint 1
Hi,
I'm having difficulty importing my textfile that looks something like this:
#begin text file
Timepoint 1
ObjectNumber Volume SurfaceArea
1 5.3 9.7
2 4.9 8.3
3 5.0 9.1
4 3.5
Hi ,
I want to convert a my list:
myList
[[1]]
[1] 1 2 3 4 5
[[2]]
[1] 6 7 8
[[3]]
[1] 9 10 11
into something like c(1,2,3,4,5,6,7,8,9,10,11)
I realized that this is possible by
c(do.call(cbind,myList))
But only when list[[1]] through list[[3] have equal length of vectors within
them
Ok, nevermind.
all I had to do was unlist(myList).
delnatan wrote:
Hi ,
I want to convert a my list:
myList
[[1]]
[1] 1 2 3 4 5
[[2]]
[1] 6 7 8
[[3]]
[1] 9 10 11
into something like c(1,2,3,4,5,6,7,8,9,10,11)
I realized that this is possible by
c(do.call(cbind,myList
4 matches
Mail list logo