Learn R Programming

tolBasis (version 1.0)

Dceiling: Date Ceiling

Description

Date Ceiling in a Dating

Usage

Dceiling(dte, dating=Daily)

Arguments

dte
a Date or POSIXt object
dating
a Dating object

Value

Returns the least date belonging to the dating which is greater or equal than the indicated one.

See Also

See also the functions Dfloor and Dround

Examples

Run this code
# Obtain the first day of the next month
Dceiling(Sys.Date(), Monthly)

Run the code above in your browser using DataLab