stat545ubc-2021/timediff_package: Calculate the time difference between two dates

This package timediff contains a function named 'timediff()'. Using 'timediff(start_date, end_date)' will return the time difference between the start date and end date as a number of years rounded to two decimal places. The inputs need to be in date format. Use 'ymd()' from lubridate package or 'as.Date()' from base package. The function will remove the NA values before calculation. No extra work is needed to handle NA values.

Getting started

Package details

Maintainer
LicenseMIT + file LICENSE
Version0.1.3
Package repositoryView on GitHub
Installation Install the latest version of this package by entering the following in R:
install.packages("remotes")
remotes::install_github("stat545ubc-2021/timediff_package")
stat545ubc-2021/timediff_package documentation built on Dec. 23, 2021, 5:26 a.m.