Re: [R] recoding responses in a numeric variable

2017-01-07 Thread Jeff Newmiller
Please read the Posting Guide mentioned at the bottom of this and every message. In particular, send your email in plain text format so we get to see what you saw (the mailing list strips out HTML formatting in most cases). Also please work to make your examples reproducible... e.g. give all st

[R] recoding responses in a numeric variable

2017-01-07 Thread Licia Biotti
Hello, I am working with a dataset in R studio, and I have created a numeric variable which I have called fear by using a factor variable (called vn35). Here is the piece of code: fear<-gles_reduced$vn35 levels(fear) table(fear, as.numeric(fear), exclude=NULL) Then I have coded the levels "don't