[R] "unbind" matrix?

ManInMoon xmoon2000 at googlemail.com
Thu Mar 18 13:39:16 CET 2010

I have a function that take a variable number of arguments, each of which
must be a vector.

Is there a way to "unbind" a matrix that would pass the columns as vectors?

Myfunc<-function(...) {
 [My code]

Myfunc(z[,1],z[,2])   works

but Myfunc(z[,1:2]) is passing a submatrix

Is there something like Myfunc(unbind(z[,1:2])) ??

View this message in context: http://n4.nabble.com/unbind-matrix-tp1597887p1597887.html
Sent from the R help mailing list archive at Nabble.com.

More information about the R-help mailing list