[R] value.labels

Rolf Turner rolf.turner at xtra.co.nz
Thu Aug 11 23:11:43 CEST 2011


On 12/08/11 09:59, Heinz Tuechler wrote:
> At 11.08.2011 21:50 +0300, Zeki Çatav wrote:
>> Prş, 2011-08-11 tarihinde 19:27 +0200 saatinde, Uwe Ligges yazdı:
>> >
>> > On 11.08.2011 19:22, David Winsemius wrote:
>> > >
>> > > On Aug 11, 2011, at 11:42 AM, Uwe Ligges wrote:
>> > >
>> > >>
>> > >>
>> > >> On 11.08.2011 16:10, zcatav wrote:
>> > >>> Hello R people,
>> > >>>
>> > >>> I have a "data.frame". Status variable has 3 values. 0->alive,
>> > >>> 1->dead and
>> > >>> 2->missed..........................
>> > .........................................
>> > As I understood the question, just how to rename the levels was the
>> > original question.
>> >
>> > Uwe
>>
>> I don't want to rename levels or converting from numeric to string. I
>> want to add each corresponding levels value, a label, as in SPSS.
>> Level 0 labeled with alive,
>> level 1 labeled with dead and
>> level 2 labeled with missed.
>
> This is not possible with a factor, because factor levels can only be 
> positive integers.

That is just plain (ridiculously) wrong. RTFM.

cheers,

Rolf Turner



More information about the R-help mailing list