Skip to content
Prev 314186 / 398506 Next

apply with missing values

On Dec 24, 2012, at 11:21 AM, jenna wrote:

            
The error message appears informative (and would NOT be expected to be  
solved by adding na.rm=TRUE). Your construction of the data055  
dataframe was flawed in some way. You have not shown how it was done  
nor given dput(head(data055)) which would have provided a basis for  
further assessment. Based on past experience my guess is that there  
was a character value in the column of data you thought was numeric  
during a read.* operation and is now a factor.