get_selected_mappings: Get selected id-label mapping from list of filter options or...

View source: R/filters.R

get_selected_mappingsR Documentation

Get selected id-label mapping from list of filter options or column mappings

Description

Gets the id to label mapping of a particular type matching a set of IDs. If ids are NULL then this returns all options.

Usage

get_selected_mappings(mappings, type, ids = NULL, key = "options")

Arguments

mappings

The full set of output filters or column mappings

type

The type of column to get mappings for, area, age, sex, quarter

ids

Set of IDs to return, or NULL for all options

key

The key to use for individual options. For filter mappings this is "options" for column mapping this is "value"

Value

The selected mappings


mrc-ide/hintr documentation built on April 21, 2024, 4:17 a.m.