Description
Get Insights on 'lubridate' Operations.
Description
Provides a set of tools designed to enhance transparency and understanding of date-time manipulation functions from the 'lubridate' package. It provides detailed feedback about the operations performed by 'lubridate' functions, allowing users to better comprehend and debug their code. These insights serve as both a learning tool for newcomers and a debugging aid for programmers working with date-time data.
README.md
lubrilog 
The goal of lubrilog is to provide feedback from a subset of lubridate
functions such as ymd
, dmy
, mdy
and year
.
lubrilog contains a games
dataset which is a subset of data from games on Steam. For more information use:
library(lubrilog)
?games
Inspirations
lubrilog
would not be possible without the following packages:
Installation
# The easiest way to install lubrilog is directly from CRAN:
install.packages("lubrilog")
# Or you can install the development version of lubrilog from GitHub with:
# install.packages("devtools")
devtools::install_github("arrismo/lubrilog")
Example
Load lubrilog
:
library("lubrilog")
Using the games
data set let’s clean our release_date
column:
head(games$release_date)
#> [1] "Nov 1 2000" "Apr 1 1999" "May 1 2003" "Jun 1 2001" "Nov 1 1999"
#> [6] "Nov 1 2000"
Lubrilog will give you information about the lubridate
operation:
head(mdy(games$release_date))
#> ✖ NA values created by parsing: 465
#> ✔ Example successful parse:
#> → Original: Nov 1 2000
#> → Parsed: 2000-11-01
#> ✖ Example failed parse:
#> → Original: Coming Soon
#> → Parsed: NA
#> [1] "2000-11-01" "1999-04-01" "2003-05-01" "2001-06-01" "1999-11-01"
#> [6] "2000-11-01"