📢 Simplifying Dates and Times in R: Base R vs. lubridate 📆⏰
as.Date() class: In R, as.Date() converts input to a date format. For example, class(as.Date("1881/10/25")) yields the "Date" class.
Today's date and time: Use today() and now() to fetch the current date or date and time effortlessly.
Class compatibility: as_date() (lubridate) and as.Date() (base R) produce the same "Date" class output.
#lubridate #datesandtimes #RStats #rprogramming
Are you a New Yorker who relies on heating oil to keep your home warm during the winter months? Keeping track of heating oil prices is essential for making informed decisions about when to buy and how much to purchase. With the help of R, accessing and visualizing the latest heating oil prices in New York is easier than ever before.
Link to the blog post: https://www.spsanderson.com/steveondata/posts/rtip-2023-03-08/
#R #heatingoil #NewYork #datavisualization #timetk #dplyr #xml2 #rvest #oil #heatingoil #nys #purrr #lubridate
#lubridate #purrr #nys #oil #rvest #xml2 #dplyr #timetk #datavisualization #NewYork #heatingoil #r
@filmicaesthetic I learned via #tidyverse so the first line in all my scripts is library(tidyverse)
And I'm excited for the day #lubridate is folded in. Essentially one less line in all my scripts!