dtt_subtract_units: Subtract Units

Description Usage Arguments Value See Also Examples

View source: R/subtract.R

Description

Subtract time units from a date time vector.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13

Arguments

x

A date time vector.

n

An integer of the number of units.

units

A string of the units.

Value

The modified date time vector.

See Also

dtt_add_units()

Examples

1
dtt_subtract_units(as.Date("1999-12-31"), 2L, "days")

dttr2 documentation built on July 10, 2020, 5:06 p.m.