Get Insights on 'lubridate' Operations

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.


lubrilog

R-CMD-check Codecov testcoverage CRAN CRAN

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
#> ✔ Successful parse:
#> →   Original: Nov 1 2000
#> →   Parsed:   2000-11-01
#> ✖ 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"

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("lubrilog")

1.3.0 by Mikael Moise, a year ago


https://github.com/arrismo/lubrilog


Report a bug at https://github.com/arrismo/lubrilog/issues


Browse source code at https://github.com/cran/lubrilog


Authors: Mikael Moise [aut, cre, cph]


Documentation:   PDF Manual  


GPL (>= 3) license


Imports cli, lubridate

Suggests testthat


See at CRAN