Dear Sir/Madam, I converted my Stata Rgenmetvl.dta file with read.dta succesfully in R's Rgenmetvl.Rdata. However, factors give problem in certain calculations, e.g.: > mean(Rgenmetvl$sex) [1] NA Warning message: In mean.default(Rgenmetvl$sex) : argument is not numeric or logical: returning NA
What can I do? In addition to means, summary(Rgenmetvl$sex) works perfectly. Best regards, Rob Bakker, beginner in R [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.