[R] cbind

livia yn19832 at msn.com
Fri Jun 29 15:13:03 CEST 2007


Hi, I have a series of return data, a and b are factors. I would like to
build a matrix which contains each vector of "returns". I am thinking about
something as following, but I guess there should be a sensible way of doing
this. 

returns <- split(return, list(regimef, assetf))
cbind(returns[[1]], returns[[2]],...,returns[[n]])

Could anyone give me some advice? Many thanks.
-- 
View this message in context: http://www.nabble.com/cbind-tf3999805.html#a11359949
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list