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
|