Given a vector indexing the smooths of a GAM, returns a logical vector selecting the requested smooths.
check_user_select_smooths(
smooths,
select = NULL,
partial_match = FALSE,
model_name = NULL
)
A logical vector the same length as length(smooths)
indicating
which smooths have been selected.
character; a vector of smooth labels.
numeric, logical, or character vector of selected smooths.
logical; in the case of character select
, should
select
match partially against smooths
? If partial_match = TRUE
,
select
must only be a single string, a character vector of length 1.
character; a model name that will be used in error messages.
Gavin L. Simpson