Re: [R] ordinal variables

From: Iasonas Lamprianou <lamprianou_at_yahoo.com>
Date: Thu, 03 Jun 2010 05:25:18 -0700 (PDT)


Dear colleagues,

I teach statistics using SPSS. I want to use R instead. I hit on one problem and I need some quick advice. When I want to work with ordinal variables, in SPSS I can compute the median or create a barchart or compute a spearman correlation with no problems. In R, if I "read" the ordinal variable as numeric, then I cannot do a barplot because I miss the category names. If I read the variables as characters, then I cannot run a spearman. How can I read a variable as numeric, still have the chance to assign value labels, and be able to get table of frequencies etc? I want to be able to do all these things in R commander. My students will probable be scared away if I try anything else other than R commander (just writing commands will not make them happy).

I hope I am not asking for too much. Hopefully there is a way



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 Thu 03 Jun 2010 - 12:27:51 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 Fri 04 Jun 2010 - 05:50: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