Re: [R] how to apply several math/logic operations on columns/rows of a matrix

2011-07-01 Thread David Winsemius
On Jul 1, 2011, at 1:31 PM, Marc Jekel wrote: Dear R-Fans, The more I work with matrices (e.g., data.frames) the more I think it would be helpful to have functions to apply (several!) mathematical and/or logical operators column- or row-wise in a matrix. I know the function apply() and a

[R] how to apply several math/logic operations on columns/rows of a matrix

2011-07-01 Thread Marc Jekel
Dear R-Fans, The more I work with matrices (e.g., data.frames) the more I think it would be helpful to have functions to apply (several!) mathematical and/or logical operators column- or row-wise in a matrix. I know the function apply() and all its derivates (e.g., lapply) but I think this