Hello, I have seen a few posts about changing a vector of numbers to days of the week where the numbers are 1-7. I have a similar problem with a twist.
I have a vector of numbers ranging form 20 to 500. The numbers represent days since a starting point. The list is not consecutive, some numbers skipped and some numbers duplicated. I know day 1 was a Monday. I want to use this vector in a lm but I need to factor by day. I'm wondering how to assign "Monday" to 22,29,36,..., Tuesday to 23,30,37,... etc... Any input would be greatly appreciated. Thank you Will -- View this message in context: http://r.789695.n4.nabble.com/Change-column-of-numbers-in-data-frame-to-days-tp3008441p3008441.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ 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.