Learn R Programming

tolBasis (version 1.0)

Dcheck: Check a Date sequence

Description

Checks if a Date sequence is compatible with the specified Dating object.

Usage

Dcheck(date.sequence, dating)

Arguments

date.sequence
a sequence of dates (class Date or POSIXt)
dating
a Dating object

Value

Returns whether the Date sequence corresponds with a Date sequence at the specified Dating object.Note that the dates should be ordered in order to be a valid sequence.

See Also

See also the functions Dseq and Dfind

Examples

Run this code
# Check a Date sequence
date.sequence <- Dseq(Date(2010), Date(2014,12), Monthly)
Dcheck(date.sequence, Monthly) #-> TRUE
Dcheck(date.sequence, Quarterly) #-> FALSE

Run the code above in your browser using DataLab