[R] prettyR

Iasonas Lamprianou lamprianou at yahoo.com
Mon Jun 7 13:22:13 CEST 2010


Thank you, 

I'll have a go and if I have more questions I'll probably come back to you...

Dr. Iasonas Lamprianou


Assistant Professor (Educational Research and Evaluation)
Department of Education Sciences
European University-Cyprus
P.O. Box 22006
1516 Nicosia
Cyprus 
Tel.: +357-22-713178
Fax: +357-22-590539


Honorary Research Fellow
Department of Education
The University of Manchester
Oxford Road, Manchester M13 9PL, UK
Tel. 0044  161 275 3485
iasonas.lamprianou at manchester.ac.uk


--- On Mon, 7/6/10, Joris Meys <jorismeys at gmail.com> wrote:

> From: Joris Meys <jorismeys at gmail.com>
> Subject: Re: [R] prettyR
> To: "Iasonas Lamprianou" <lamprianou at yahoo.com>
> Cc: r-help at r-project.org
> Date: Monday, 7 June, 2010, 2:05
> Very simple as explained in the help
> files:
> 
> > X <- 1:5
> > X
> [1] 1 2 3 4 5
> 
> > add.value.labels(X,letters[1:5])
> [1] 1 2 3 4 5
> attr(,"value.labels")
> a b c d e
> 1 2 3 4 5
> > X
> [1] 1 2 3 4 5
> 
> X didn't change.
> 
> > X <- add.value.labels(X,letters[1:5])
> > X
> [1] 1 2 3 4 5
> attr(,"value.labels")
> a b c d e
> 1 2 3 4 5
> >
> X changed. Mind you, those value labels are only read by
> functions
> that use it. functions like names(), colnames(), rownames()
> and the
> likes won't use those labels.
> 
> If you really want to use a kind of labels that works in
> almost every
> situation, just use factors.
> 
> Cheers
> Joris
> 
> 
> On Sun, Jun 6, 2010 at 6:49 PM, Iasonas Lamprianou <lamprianou at yahoo.com>
> wrote:
> > Hi all,
> > does anyone have any practical examples of how this
> command can be used in prettyR?
> > add.value.labels(x,value.labels)
> >
> > I mean, can we have the SPSS style of using numbers
> and/or labels if we want to?
> >
> > Thank you for your time
> >
> > Jason
> >
> >
> > Dr. Iasonas Lamprianou
> >
> >
> > Assistant Professor (Educational Research and
> Evaluation)
> > Department of Education Sciences
> > European University-Cyprus
> > P.O. Box 22006
> > 1516 Nicosia
> > Cyprus
> > Tel.: +357-22-713178
> > Fax: +357-22-590539
> >
> >
> > Honorary Research Fellow
> > Department of Education
> > The University of Manchester
> > Oxford Road, Manchester M13 9PL, UK
> > Tel. 0044  161 275 3485
> > iasonas.lamprianou at manchester.ac.uk
> >
> >
> >
> >
> > ______________________________________________
> > R-help at r-project.org
> mailing list
> > https://stat.ethz.ch/mailman/listinfo/r-help
> > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> > and provide commented, minimal, self-contained,
> reproducible code.
> >
> 
> 
> 
> -- 
> Ghent University
> Faculty of Bioscience Engineering
> Department of Applied mathematics, biometrics and process
> control
> 
> tel : +32 9 264 59 87
> Joris.Meys at Ugent.be
> -------------------------------
> Disclaimer : http://helpdesk.ugent.be/e-maildisclaimer.php
> 






More information about the R-help mailing list