Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
2022-rstudio-conf-its-about-time
Search
Davis Vaughan
July 05, 2022
560
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Β 2022-rstudio-conf-its-about-time
Davis Vaughan
July 05, 2022
More Decks by Davis Vaughan
See All by Davis Vaughan
New features in dplyr 1.1.0, plus an intro to ivs
davisvaughan
0
1.2k
slide-almanac.pdf
davisvaughan
0
600
useR-2019-rray.pdf
davisvaughan
0
1.3k
Rethinking Arrays in R
davisvaughan
3
1.8k
Arrays in R
davisvaughan
0
230
Modeling in the tidyverse
davisvaughan
0
310
Time series & financial analysis in the tidyverse
davisvaughan
4
1k
Featured
See All Featured
First, design no harm
axbom
PRO
2
1.3k
How STYLIGHT went responsive
nonsquared
100
6.2k
The Directorβs Chair: Orchestrating AI for Truly Effective Learning
tmiket
1
280
How Software Deployment tools have changed in the past 20 years
geshan
1
34k
Lightning Talk: Beautiful Slides for Beginners
inesmontani
PRO
2
640
The Hidden Cost of Media on the Web [PixelPalooza 2025]
tammyeverts
2
470
How GitHub (no longer) Works
holman
316
150k
KATA
mclloyd
PRO
35
15k
Writing Fast Ruby
sferik
630
63k
Ten Tips & Tricks for a π± transition
stuffmc
0
170
Believing is Seeing
oripsolob
1
200
The Invisible Side of Design
smashingmag
301
52k
Transcript
Itβs about time Davis Vaughan July 2022
None
clock is not replacing lubridate
π clock.r-lib.org Safety
π clock.r-lib.org Calendars Safety
π clock.r-lib.org 2022-01-30 Calendars Safety
None
π clock.r-lib.org Jan 27 28 29 30 31 Feb Mar
1 2 Feb 27 28 1 2
π clock.r-lib.org Jan 27 28 29 30 31 Feb Mar
1 2 Feb Add 1 month? ? 27 28 1 2
π clock.r-lib.org "2022-01-30" + months(1) = NA Jan 27 28
29 30 31 Feb Mar 1 2 Feb Add 1 month? ? 27 28 1 2
π clock.r-lib.org add_months("2022-01-30", 1) #> ! Invalid date found at
location 1. #> βΉ Resolve invalid date issues by #> specifying the `invalid` argument. Jan 27 28 29 30 31 Feb Mar 1 2 Feb Add 1 month? ? 27 28 1 2
π clock.r-lib.org add_months("2022-01-30", 1, invalid = "previous") = "2022-02-28" Jan
27 28 29 30 31 Feb Mar 1 2 Feb Add 1 month? 27 28 1 2
π clock.r-lib.org add_months("2022-01-30", 1, invalid = "next") = "2022-03-01" Jan
27 28 29 30 31 Feb Mar 1 2 Feb Add 1 month? 27 28 1 2
π clock.r-lib.org add_months("2022-01-30", 1, invalid = "NA") = NA Jan
27 28 29 30 31 Feb Mar 1 2 Feb Add 1 month? 27 28 1 2
π clock.r-lib.org "2022-01-30" year_month_day
π clock.r-lib.org "2022-030" year_day "2022-01-30" year_month_day
π clock.r-lib.org "2022-030" year_day "2022-01-Sun[5]" year_month_weekday "2022-Q1-30" year_quarter_day "2022-W04-7" iso_year_week_day
"2022-01-30" year_month_day
π clock.r-lib.org "2022-030" year_day "2022-01-Sun[5]" year_month_weekday "2022-Q1-30" year_quarter_day "2022-W04-7" iso_year_week_day
"2022-01-30" year_month_day
π clock.r-lib.org "2022-030" year_day "2022-01-Sun[5]" year_month_weekday "2022-Q1-30" year_quarter_day "2022-W04-7" iso_year_week_day
"2022-01-30" year_month_day Date POSIXct
π clock.r-lib.org "2022-030" year_day "2022-01-Sun[5]" year_month_weekday "2022-Q1-30" year_quarter_day "2022-W04-7" iso_year_week_day
"2022-01-30" year_month_day Date POSIXct "2022-01" year_month_day<month> "2022-01-30" year_month_day
π clock.r-lib.org Compatibility slider ivs Rolling average, looking back 3
quarters Intervals, i.e. [2022-01, 2022-07)
lubridate is NOT going anywhere But try clock for: -
Enhanced safety - Powerful types clock.r-lib.org