date_plus: Add a period of time to a Date object

View source: R/datetime_utils.R

date_plusR Documentation

Add a period of time to a Date object

Description

Add a period of time to a Date object

Usage

date_plus(x, years = 0, months = 0, days = 0)

Arguments

x

starting Date

years

years to be added

months

months to be added

days

days to be added

Examples

(today <- Sys.Date())
date_plus(today, years = 1, months = 1, days = 1)

lbraglia/lbmisc documentation built on March 28, 2024, 10:03 a.m.