Re: [R] recoding variables-recode not working

2010-04-08 Thread Vlatka Matkovic Puljic
0 1 and more >>> [7] 1 and more 1 and more 1 and more 1 and more >>> Levels: 0 1 and more >>> >>> I hope this helps, >>> John >>> >>> >>> John Fox >>> Senator William McMas

Re: [R] recoding variables-recode not working

2010-04-08 Thread David Winsemius
tario, Canada web: socserv.mcmaster.ca/jfox -----Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org ] On Behalf Of Vlatka Matkovic Puljic Sent: April-07-10 1:31 PM To: r-help@r-project.org Subject: [R] recoding variables-recode not working Hi,

Re: [R] recoding variables-recode not working

2010-04-08 Thread Vlatka Matkovic Puljic
vels: 0 1 and more > > I hope this helps, > John > > > John Fox > Senator William McMaster > Professor of Social Statistics > Department of Sociology > McMaster University > Hamilton, Ontario, Canada > web: socserv.mcmaster.ca/jfox &g

Re: [R] recoding variables-recode not working

2010-04-07 Thread John Fox
-- John Fox Senator William McMaster Professor of Social Statistics Department of Sociology McMaster University Hamilton, Ontario, Canada web: socserv.mcmaster.ca/jfox > -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-p

Re: [R] recoding variables-recode not working

2010-04-07 Thread David Winsemius
On Apr 7, 2010, at 1:50 PM, Vlatka Matkovic Puljic wrote: atomic [1:1578] 0 0 0 0 0 0 0 0 0 0 ... - attr(*, "levels")= chr "0=0,1:33=1" Can you go back to where you got this data and start over? You have made something that looks quite strange. It appears to be neither a vector of mode a

Re: [R] recoding variables-recode not working

2010-04-07 Thread David Winsemius
On Apr 7, 2010, at 1:31 PM, Vlatka Matkovic Puljic wrote: Hi, I have numerical variable that I want to recode into categories '0' and '1 and more' and do analysis with that data. I have tried various of possibilities to do so, but I am sucked and nothing is working. recode(Q12, "0='A';1

Re: [R] recoding variables-recode not working

2010-04-07 Thread Vlatka Matkovic Puljic
atomic [1:1578] 0 0 0 0 0 0 0 0 0 0 ... - attr(*, "levels")= chr "0=0,1:33=1" 2010/4/7 David Winsemius > > On Apr 7, 2010, at 1:31 PM, Vlatka Matkovic Puljic wrote: > > Hi, >> >> I have numerical variable that I want to recode into categories '0' and '1 >> and more' and do analysis with that d

[R] recoding variables-recode not working

2010-04-07 Thread Vlatka Matkovic Puljic
Hi, I have numerical variable that I want to recode into categories '0' and '1 and more' and do analysis with that data. I have tried various of possibilities to do so, but I am sucked and nothing is working. recode(Q12, "0='A';1:30='B'") cut(Q12, breaks=c(0,1,30), lables=c('0', '1 and more')) ca