Filter calendar events to match the extent on the calendar
Source:R/filter_events.R
filter_events.Rd
Filter calendar events to match the extent on the calendar
Arguments
- data
a
data.frame
with at least the following columns:from
, the start of the event,to
, the end of the event,name
, the name of the event, andcategory
, the category of the event (used for different colors).- year
either an
integer
or acharacter
of length 1. Must have 4 characters (e.g. '2024' and not '24'). Default is the current year.- month
either an
integer
or acharacter
of length 1. Must have 1 or 2 characters (e.g. '01' or '1'). Default is the current month.- format
a
character
of length 1. Used to specify the format of the date. Default is"%Y-%m-%d"
(i.e. 2024-12-25).- weekend
a
logical
. IfTRUE
keeps Saturdays and Sundays. Default isFALSE
.