[R] cbind function

livia yn19832 at msn.com
Tue Nov 13 17:51:35 CET 2007


Hello everyone,

I would like to use the "cbind" function to construct a dataset, combining
some variable I defined before.
The codes are something like

var1 <- ...
var2 <- ...
var2 <- ...
...
data <- cbind(var1,var2,var3...)

The problem is I would like some flexibity in the data, i.e. the number of
the variables are not fixed. Is there a method of combine the uncertain
number of variables defined previously?

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



More information about the R-help mailing list