Re: [R] Calculating mean for a number of columns

2010-02-10 Thread David Winsemius
On Feb 10, 2010, at 1:18 PM, Steve Murray wrote: Dear all, I am attempting to perform what should be a relatively simple calculation on a number of data frame columns. I am hoping to find the average on a per-row basis for each of the 50 columns. If on a particular row a 'NA' value is e

[R] Calculating mean for a number of columns

2010-02-10 Thread Steve Murray
Dear all, I am attempting to perform what should be a relatively simple calculation on a number of data frame columns. I am hoping to find the average on a per-row basis for each of the 50 columns. If on a particular row a 'NA' value is encountered, then this should be ignored and the mean for