[R] Vector of matrix

Duncan Murdoch murdoch at stats.uwo.ca
Mon Apr 27 14:07:56 CEST 2009


On 4/27/2009 8:01 AM, Romildo Martins wrote:
> Hello,
> 
> To specify a vector of matrices in R (which may have different sizes)?

M1 <- matrix(1,1,1)
M2 <- matrix(2,2,2)
vec <- list(M1, M2)

> 
> Thanks a lot!
> 
> Romildo
> 
> 	[[alternative HTML version deleted]]
> 
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.




More information about the R-help mailing list