> lubridate::dmy("2022-03-21") + lubridate::days(7)
[1] NA
Warning message:
All formats failed to parse. No formats found.
>
> anytime::anydate("2022-03-21") + 7
[1] "2022-03-28"
>
Always happy to help another #rstats user π
πππ’("πΈπΆπΈπΈ-πΆπΉ-πΈπ·") + πππ’π(π½)
That's right, for folks planning to submit your talk for consideration at πππππππ::ππππ(πΈπΆπΈπΈ), weβre extending the deadline to March 28.
#rstudioconf #rstudioconf2022
3
6
59
Thanks all: I am (of course) aware of `ymd()`, the point of the tweet was that `anydate()` avoids all this automagically.
Plus, as @shabbychef reminded us, base #Rstats was there first (for this value) as `as.Date("2022-03-21") + 7` also works. Peace out.
Mar 20, 2022 Β· 2:10 PM UTC
1
1
4
