
Filter calendar events to match the extent on the calendar
Source:R/filter_events.R
filter_events.RdFilter calendar events to match the extent on the calendar
Arguments
- data
a
data.framewith 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
integeror acharacterof length 1. Must have 4 characters (e.g. '2024' and not '24'). Default is the current year.- month
either an
integeror acharacterof length 1. Must have 1 or 2 characters (e.g. '01' or '1'). Default is the current month.- format
a
characterof length 1. Used to specify the format of the date. Default is"%Y-%m-%d"(i.e. 2024-12-25).- weekend
a
logical. IfTRUEkeeps Saturdays and Sundays. Default isFALSE.