Skip to content
Prev 22470 / 398502 Next

Forcing integers to be nominal

Dear Tim,

As has been pointed out, you need to ensure that YearColl is coerced to a 
factor. The read.spss function by default converts variables to factors 
when they have value labels in the SPSS data set; otherwise numeric 
variables without value labels remain numeric. See help(read.spss).

I hope that this helps,
  John
At 02:10 AM 8/7/2002 -0500, Tim Wilson wrote:
-----------------------------------------------------
John Fox
Department of Sociology
McMaster University
Hamilton, Ontario, Canada L8S 4M4
email: jfox at mcmaster.ca
phone: 905-525-9140x23604
web: www.socsci.mcmaster.ca/jfox
-----------------------------------------------------

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._