Monthly Archives: October 2007

Reorder factor levels

October 3, 2007
By

Very often, especially when plotting data, I need to reorder the levels of a factor because the default order is alphabetical. There must be many ways of reordering the levels; however, I always forget which package to look in. A direct way of reorderi...

Read more »

R video tutorial number 2

October 2, 2007
By
R video tutorial number 2

READ TEXT FILES, RUN MODELSThe Decision Science News R video tutorials continue with number 2. (If you missed that last one, you will want to watch R Video Tutorial Number 1 first.) The Goldstein pedometer dataset can be downloaded from http://www.dangoldstein.com/flash/Rtutorial2/pedometer.csv Topics covered this week include:Tricking R into starting in your working directory Reading in text

Read more »