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
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,
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
--
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
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
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
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
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
8 matches
Mail list logo