Dround: Date Round

Description Usage Arguments Value See Also Examples

Description

Date Round in a Dating

Usage

1
Dround(dte, dating=Daily)

Arguments

dte

a Date or POSIXt object

dating

a Dating object

Value

Returns the nearest date to the indicated one that belongs to the dating.

See Also

See also the functions Dfloor and Dceiling

Examples

1
2
# Obtain the nearest first day of a month
Dround(Sys.Date(), Monthly)

tolBasis documentation built on May 2, 2019, 3:44 a.m.