Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
2022-rstudio-conf-its-about-time
Search
Davis Vaughan
July 05, 2022
580
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
Transcript
22 slides
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
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
610
useR-2019-rray.pdf
davisvaughan
0
1.4k
Rethinking Arrays in R
davisvaughan
3
1.8k
Arrays in R
davisvaughan
0
250
Modeling in the tidyverse
davisvaughan
0
330
Time series & financial analysis in the tidyverse
davisvaughan
4
1.1k
Featured
See All Featured
Applied NLP in the Age of Generative AI
inesmontani
PRO
4
2.6k
Design in an AI World
tapps
1
400
Google's AI Overviews - The New Search
badams
0
1.7k
The innovatorโs Mindset - โจLeading Through an Era of Exponential Change - McGill University 2025
jdejongh
PRO
1
400
Designing Powerful Visuals for Engaging Learning
tmiket
1
660
Automating Front-end Workflow
addyosmani
1370
210k
ๅฎ้ใซไฝฟใSQLใฎๆธใๆน ๅพนๅบ่งฃ่ชฌ / pgcon21j-tutorial
soudai
PRO
203
77k
Future Trends and Review - Lecture 12 - Web Technologies (1019888BNR)
signer
PRO
0
3.9k
Scaling GitHub
holman
464
140k
My Coaching Mixtape
mlcsv
0
390
I Donโt Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
35
2.9k
Mozcon NYC 2025: Stop Losing SEO Traffic
samtorres
1
610