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.
Package details |
|
---|---|
Maintainer | |
License | MIT + file LICENSE |
Version | 0.1.3 |
Package repository | View on GitHub |
Installation |
Install the latest version of this package by entering the following in R:
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.