s-news
[Top] [All Lists]

Re: formatting factor levels with special labels

To: "'Dimitrios Rizopoulos'" <Dimitris.Rizopoulos@med.kuleuven.be>, "'Savitri Appana'" <saviappana@yahoo.com>
Subject: Re: formatting factor levels with special labels
From: "Carlos Alzola" <calzola@cox.net>
Date: Fri, 19 May 2006 15:29:07 -0400
Cc: <s-news@wubios.wustl.edu>
In-reply-to: <1148063561.446e0f495092c@webmail2.kuleuven.be>
Thread-index: AcZ7crdlYwVq8mk4TQiy+x4I5Hib6AAB5D5g
If you are reading from a SAS dataset and the original variables had formats
you can use sas.get in the Hmisc library to preserve the value labels.

Carlos 


Carlos Alzola
calzola@cox.net
(703) 242-6747 
-----Original Message-----
From: s-news-owner@lists.biostat.wustl.edu
[mailto:s-news-owner@lists.biostat.wustl.edu] On Behalf Of Dimitrios
Rizopoulos
Sent: Friday, May 19, 2006 2:33 PM
To: Savitri Appana
Cc: s-news@wubios.wustl.edu
Subject: Re: [S] formatting factor levels with special labels

look at ?factor and its examples.

Best,
Dimitris

----
Dimitris Rizopoulos
Ph.D. Student
Biostatistical Centre
School of Public Health
Catholic University of Leuven

Address: Kapucijnenvoer 35, Leuven, Belgium
Tel: +32/(0)16/336899
Fax: +32/(0)16/337015
Web: http://med.kuleuven.be/biostat/
     http://www.student.kuleuven.be/~m0390867/dimitris.htm


Quoting Savitri Appana <saviappana@yahoo.com>:

> Hello S+ users,
> 
> Is there an equivalent for SAS's proc format were you can create 
> labels for the factor levels.  I want to give labels to levels of a 
> factor instead of just 1,2,... to be reflected in plots, multiple 
> comparison tests, etc.
> 
> I'll be glad to summarize the results to the archives.
> 
> 
> Thank you in advance,
> Savi
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com
> --------------------------------------------------------------------
> This message was distributed by s-news@lists.biostat.wustl.edu.  To 
> unsubscribe send e-mail to s-news-request@lists.biostat.wustl.edu
> with
> the BODY of the message:  unsubscribe s-news
> 
> 


Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm

--------------------------------------------------------------------
This message was distributed by s-news@lists.biostat.wustl.edu.  To
unsubscribe send e-mail to s-news-request@lists.biostat.wustl.edu with the
BODY of the message:  unsubscribe s-news



<Prev in Thread] Current Thread [Next in Thread>