> -Original Message-
> From: r-help-boun...@r-project.org
> [mailto:r-help-boun...@r-project.org] On Behalf Of Oliver Gondring
> Sent: Sunday, January 31, 2010 6:53 AM
> To: r-help@r-project.org
> Subject: [R] Reshaping matrix of vectors as dataframe
>
> Dear
On Jan 31, 2010, at 9:53 AM, Oliver Gondring wrote:
Dear R people,
I have to deal with the output of a function which comes as a matrix
of vectors.
If that is so, then the object below does not represent it, because
that is a matrix of _lists_.
You can reproduce the structure as given
Dear R people,
I have to deal with the output of a function which comes as a matrix of
vectors.
You can reproduce the structure as given below:
x <- list(c(1,2,4),c(1,3,5),c(0,1,0),
c(1,3,6,5),c(3,4,4,4),c(0,1,0,1),
c(3,7),c(1,2),c(0,1))
data <- matrix(x,byrow=TRUE,nrow=3)
3 matches
Mail list logo