number_of_days {cropgrowdays}R Documentation

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)

Arguments

x

The end date with class Date

start

The start date with class Date

Value

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

Examples

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

[Package cropgrowdays version 0.2.1 Index]