Re: [R] See the numeric codes of a factor

2014-09-19 Thread Bert Gunter
use each variation > depending on the analysis. > > Angel > > > > De: Duncan Murdoch [mailto:murdoch.dun...@gmail.com] > Enviado el: vie 19/09/2014 14:22 > Para: Angel Rodriguez; r-help@r-project.org > Asunto: Re: [R] See the numeri

Re: [R] See the numeric codes of a factor

2014-09-19 Thread Jeff Newmiller
ngel Rodriguez; r-help@r-project.org >Asunto: Re: [R] See the numeric codes of a factor > > > >On 19/09/2014 8:12 AM, Angel Rodriguez wrote: >> Re: [R] See the numeric codes of a factor >> Thank you, Duncan. So isn't it possible to add labels to a variable >> wit

Re: [R] See the numeric codes of a factor

2014-09-19 Thread Angel Rodriguez
Murdoch [mailto:murdoch.dun...@gmail.com] Enviado el: vie 19/09/2014 14:22 Para: Angel Rodriguez; r-help@r-project.org Asunto: Re: [R] See the numeric codes of a factor On 19/09/2014 8:12 AM, Angel Rodriguez wrote: > Re: [R] See the numeric codes of a factor > Thank you, Duncan. So is

Re: [R] See the numeric codes of a factor

2014-09-19 Thread Duncan Murdoch
On 19/09/2014 8:12 AM, Angel Rodriguez wrote: Re: [R] See the numeric codes of a factor Thank you, Duncan. So isn't it possible to add labels to a variable with numeric values 0/1? This kind of variable is very useful for logistic regression, for example, but I'd rather have its

Re: [R] See the numeric codes of a factor

2014-09-19 Thread Angel Rodriguez
urdoch.dun...@gmail.com] Enviado el: vie 19/09/2014 13:32 Para: Angel Rodriguez; r-help@r-project.org Asunto: Re: [R] See the numeric codes of a factor On 19/09/2014, 6:53 AM, Angel Rodriguez wrote: > Dear Subscribers, > > I want to label a numeric variable 0="Bad" /1="Good

Re: [R] See the numeric codes of a factor

2014-09-19 Thread Duncan Murdoch
On 19/09/2014, 6:53 AM, Angel Rodriguez wrote: > Dear Subscribers, > > I want to label a numeric variable 0="Bad" /1="Good". I understand the only > way is to transform it into a factor variable. > > Is there a way to check that the numeric values of the new factor variable > are 0 and 1 and

Re: [R] See the numeric codes of a factor

2014-09-19 Thread Jim Lemon
On Fri, 19 Sep 2014 12:53:16 PM Angel Rodriguez wrote: > Dear Subscribers, > > I want to label a numeric variable 0="Bad" /1="Good". I understand the only > way is to transform it into a factor variable. > > Is there a way to check that the numeric values of the new factor variable > are 0 and

[R] See the numeric codes of a factor

2014-09-19 Thread Angel Rodriguez
Dear Subscribers, I want to label a numeric variable 0="Bad" /1="Good". I understand the only way is to transform it into a factor variable. Is there a way to check that the numeric values of the new factor variable are 0 and 1 and not 1 and 2? Thank you very much. Angel Rodriguez-Laso