Learn R Programming

tolBasis (version 1.0)

Dfloor: Date Floor

Description

Date Floor in a Dating

Usage

Dfloor(dte, dating=Daily)

Arguments

dte
a Date or POSIXt object
dating
a Dating object

Value

Returns the greatest date belonging to the dating which is less or equal than the indicated one.

See Also

See also the functions Dceiling and Dround

Examples

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

Run the code above in your browser using DataLab