number_of_days: The number of days between two dates

View source: R/day_of_year.R

number_of_daysR 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"))

cropgrowdays documentation built on May 31, 2023, 5:22 p.m.