Jump to content

Day of the week: Difference between revisions

m
m (cleaner way to do it as a one-liner : define a "local variable" with the function "with" or use a dataframe)
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"])
 
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.