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?