Given a vector indexing the smooths of a GAM, returns a logical vector selecting the requested smooths.
Arguments
- smooths
character; a vector of smooth labels.
- select
numeric, logical, or character vector of selected smooths.
- partial_match
logical; in the case of character
select
, shouldselect
match partially againstsmooths
? Ifpartial_match = TRUE
,select
must only be a single string, a character vector of length 1.- model_name
character; a model name that will be used in error messages.