I need a vector containing the days of the week very often, but I always type it out:
days.of.week <- c(\"Monday\", \"Tuesday\", \"Wednesday\", \"Thursday\",
One possibility:
days.of.week <- weekdays(Sys.Date()+0:6)
Always starting on Monday:
days.of.week <- weekdays(as.Date(4,"1970-01-01",tz="GMT")+0:6)
Or you could just define it as you have, but in your .Rprofile, so it's always available on startup.
.Rprofile