;
>
>> -Original Message-
>> From: Henrique Dallazuanna [mailto:[EMAIL PROTECTED]
>> Sent: Thursday, March 27, 2008 12:50 PM
>> To: Doran, Harold
>> Cc: r-help@r-project.org
>> Subject: Re: [R] Recode factors
>>
>> If I understand, y
Perfect. My headache is gone. Thanks.
> -Original Message-
> From: Henrique Dallazuanna [mailto:[EMAIL PROTECTED]
> Sent: Thursday, March 27, 2008 12:50 PM
> To: Doran, Harold
> Cc: r-help@r-project.org
> Subject: Re: [R] Recode factors
>
> If I unde
If I understand, you can try this:
levels(x)[is.na(as.numeric(levels(x)))] <- 0
On 27/03/2008, Doran, Harold <[EMAIL PROTECTED]> wrote:
> I know this comes up, but I didn't see my exact issue in the archives. I
> have variables in a dataframe that need to be recoded. Here is what I'm
> dealing
I know this comes up, but I didn't see my exact issue in the archives. I
have variables in a dataframe that need to be recoded. Here is what I'm
dealing with
I have a factor called aa
> class(aa)
[1] "factor"
> table(aa)
aa
*0123ABCDLNT
0
4 matches
Mail list logo