Anonymous user
Day of the week: Difference between revisions
m
→{{header|R}}
m (cleaner way to do it as a one-liner : define a "local variable" with the function "with" or use a dataframe) |
m (→{{header|R}}) |
||
Line 2,746:
</lang>
<lang r># Still another solution, using ISOdate and weekdays
with(list(years=2008:2121), years[weekdays(ISOdate(years, 12, 25)) == "Sunday"])
|