[R] apply (or similar preferred) for multiple columns

Dimitris.Kapetanakis dimitrios.kapetanakis at gmail.com
Tue Jul 12 11:27:40 CEST 2011


Dear all, 

I would like to use the apply or a similar function belonging to this
family, but applying for each column (or row) but let say for each q
columns. For example I would like to apply a function FUN for the first q
columns of matrix X then for q+1:2*q and so on. If I do apply (X, 2, FUN) it
applies for each column and not for every q columns. Is that possible with
any similar function?

Thank you

Dimitris


--
View this message in context: http://r.789695.n4.nabble.com/apply-or-similar-preferred-for-multiple-columns-tp3661835p3661835.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list