subset_naomi_output.Rd
Subset the results returned in Naomi output package
subset_naomi_output(
naomi_output,
area_id = NULL,
area_level = NULL,
sex = NULL,
age_group = NULL,
calendar_quarter = NULL,
indicator = NULL,
drop = FALSE,
check_list = TRUE
)
Naomi output object.
vector of area_ids to include/exclude.
vector of area_levels to include/exclude.
vector of sexes to include/exclude.
vector of age_groups to include/exclude.
vector of calendar_quarters to include/exclude.
vector of indicators to include/exclude.
logical whether to drop the supplied indices instead of keep only the supplied indices (default).
logical whether to check that supplied values are in the output package to be subsetted.
A naomi output package with a subset of results.
If arguemnts are NULL
(default), no subsetting is done on that dimension.
By default the argument check_list = TRUE
means an error will be thrown
if any of the values in the vectors to subset are not found in the
naomi_output
object supplied. This might be set to FALSE
for some batch
processing applications, for example of the naomi_output
could have already
been partially subsetted.