Description Usage Arguments Details Value See Also Examples
View source: R/calendar-methods.R
Checks whether dates are business days (good days) in a given locale
represented by a Calendar
.
1 | is_good(dates, calendar)
|
dates |
a vector of dates |
calendar |
an object inheriting from either Calendar or JointCalendar. Dispatch to methods occurs on this argument. |
An is_good
method must be written for each calendar. The default method
returns TRUE
for all dates. Methods have been implemented for each of the
calendars inheriting from the Calendar
class - see the method's code for
more details. The method implemented for the JointCalendar
class checks
whether the supplied dates are good in each or any of the locales represented
by the joint calendar depending on the rule specified by the joint calendar.
a logical vector with TRUE
if the date is good and FALSE
if the
date is bad
Calendar
Other calendar methods: adjust
,
generate_schedule
,
is_valid_bdc
, is
,
locale
, shift
,
tz
1 2 | is_good(lubridate::ymd(20160126, 20160411), AUSYCalendar())
is_good(lubridate::ymd(20160126), USNYCalendar())
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.