addmonths: Add months to a date

View source: R/primitives.R

addmonthsR Documentation

Add months to a date

Description

Add months to a date

Usage

addmonths(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.