50% off | Unlimited Data & AI Learning

Last chance! 50% off unlimited learning

Sale ends in


cropgrowdays (version 0.2.1)

number_of_days: The number of days between two dates

Description

A convenience function which is simply as.numeric(end_date - start_date)

Usage

number_of_days(x, start)

Value

A numeric variable containing the number of days between the two dates

Arguments

x

The end date with class Date

start

The start date with class Date

Examples

Run this code
library(lubridate)
number_of_days(x = ymd("2021-01-05"), start = ymd("2020-12-28"))

Run the code above in your browser using DataLab