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]]


