number_of_days: The number of days between two dates

Description Usage Arguments Value Examples

View source: R/day_of_year.R

Description

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

Usage

1

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

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

cropgrowdays documentation built on Dec. 11, 2021, 9:23 a.m.