Re: [R] prettyR

From: Iasonas Lamprianou <lamprianou_at_yahoo.com>
Date: Mon, 07 Jun 2010 04:22:13 -0700 (PDT)


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

> 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
>



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. Received on Mon 07 Jun 2010 - 11:27:45 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 07 Jun 2010 - 11:40:27 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive