Re: [R] recode() function results in logical output, not factor output

2008-01-08 Thread John Fox
c: r-help@r-project.org > Subject: Re: [R] recode() function results in logical output, not > factor output > > On 1/7/2008 3:32 PM, Thomas MacFarland wrote: > > Dear R Users: > > > > I have race-ethnicity groups identified in the factor variable > Ethnic_G. > >

Re: [R] recode() function results in logical output, not factor output

2008-01-08 Thread Chuck Cleland
On 1/7/2008 3:32 PM, Thomas MacFarland wrote: > Dear R Users: > > I have race-ethnicity groups identified in the factor variable Ethnic_G. > > I need to collapse Ethnic_G into a new variable with only two factors, 1 > (White, non-Hispanic) and 2 (Minority). > > As seen in the code and output

[R] recode() function results in logical output, not factor output

2008-01-08 Thread Thomas MacFarland
Dear R Users: I have race-ethnicity groups identified in the factor variable Ethnic_G. I need to collapse Ethnic_G into a new variable with only two factors, 1 (White, non-Hispanic) and 2 (Minority). As seen in the code and output below, the recoded race-ethnicity variable is put into logi