Re: [R] Recategorizing Nominal variable

2012-09-25 Thread Bhupendrasinh Thakre
you may want to look at "recode" command in car package. Again as Bert said it depends on what are you trying to achieve. Best Regards, Bhupendrasinh Thakre *Disclaimer :* The information contained in this communication is confidential and may be legally privileged. It is intended solely for t

Re: [R] Recategorizing Nominal variable

2012-09-25 Thread R. Michael Weylandt
On Tue, Sep 25, 2012 at 2:22 PM, Michael Leitson wrote: > Hello, > > I would like to take a data set of doctors, and recategorize them into > numbers. > > For example, > > John Doe would be assigned as 1 > Jane Doe would be assigned as 2 > > Does anyone know how to do this in R? It seems quite eas

Re: [R] Recategorizing Nominal variable

2012-09-25 Thread Bert Gunter
Unless you have good reason and know what you're doing, **don't do this!** It is just asking for trouble. ... and yes, it is easy. Have you gone through the "Intro to R" tutorial that I believe would provide you the information to do this? Cheers, Bert On Tue, Sep 25, 2012 at 6:22 AM, Michael Le

[R] Recategorizing Nominal variable

2012-09-25 Thread Michael Leitson
Hello, I would like to take a data set of doctors, and recategorize them into numbers. For example, John Doe would be assigned as 1 Jane Doe would be assigned as 2 Does anyone know how to do this in R? It seems quite easy, yet I cannot find the code. Thank you, Michael Leitson Resea