[R] rowVars

r user ruser2006 at yahoo.com
Fri Mar 31 20:39:49 CEST 2006


I am using the R 2.2.1 in a Windows XP environment.

I have a dataframe with 12 columns and 1,000 rows.
(Some of the rows have 1 or fewer values.)

I am trying to use rowVars to calculate the variance
of each row.

I am getting the following message:
“Error in na.remove.default(x) : length of 'dimnames'
[1] not equal to array extent”


Is there a good work-around?




More information about the R-help mailing list