Learn R Programming

tolBasis (version 1.0)

Dbelong: Date Belong

Description

Indicates if a date belongs to a dating.

Usage

Dbelong(dte, dating)

Arguments

dte
a Date or POSIXt object
dating
a Dating object

Value

Returns a logical value depending on if the date belongs or not to the dating.

See Also

See also the reference for Dating objects.

Examples

Run this code
# Checks if today is the first day of a month
Dbelong(Sys.Date(), Monthly)

Run the code above in your browser using DataLab