On 23.10.2010 17:08, will phillips wrote:
Hello Dr. Pagel, Thank you very much for the input. It is "almost" working. It will indicate every day of the week except Sunday. Any multiple of 7 is giving <NA>. I'll tinker with it a bit. I really appreciate the direction you've provided.
foo <- factor((foo %% 7) + 1, levels = 1:7, labels=c('Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'))
will fix it. Best, Uwe Ligges
Will
______________________________________________ R-help@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.