predicate: Predicate functions

Description Usage Arguments Value Functions

Description

Predicate functions must take a year, month, and day integer as its parameters, and return TRUE if the date is valid. Allows one to construct complex date restrictions, such as only generating dates that are Mondays, etc.

Usage

1
2
3
is_monday(y, m, d)

null_predicate(y, m, d)

Arguments

y

Integer. Candidate year.

m

Integer. Candidate month.

d

Integer. Candidate day.

Value

TRUE if the date is valid, and FALSE if it is not and should be resampled.

Functions


mdlincoln/dateSampler documentation built on May 22, 2019, 4:05 p.m.