addyears: Add years to a date

View source: R/primitives.R

addyearsR Documentation

Add years to a date

Description

Add years to a date

Usage

addyears(x, n, invalid = c("previous", "next", "missing", "error"))

Arguments

x

An atomic vector.

n

Integer count.

invalid

How to handle an invalid resulting date.

Value

A Date vector.


basetable documentation built on Sept. 18, 2026, 9:13 a.m.