Learn R Programming

safetyGraphics (version 1.1.0)

getSettingsMetadata: Get metadata about chart settings

Description

Retrieve specified metadata about chart settings from the data/settingsMetadata.Rda file.

Usage

getSettingsMetadata(charts = NULL, text_keys = NULL, cols = NULL,
  filter_expr = NULL, add_standards = TRUE,
  metadata = safetyGraphics::settingsMetadata)

Arguments

charts

optional vector of chart names used to filter the metadata. Exact matches only (case-insensitive). All rows returned by default.

text_keys

optional vector of keys used to filter the metadata. Partial matches for any of the strings are returned (case-insensitive). All rows returned by default.

cols

optional vector of columns to return from the metadata. All columns returned by default.

filter_expr

optional filter expression used to subset the data.

add_standards

should data standard info stored in standardsMetadata be included

metadata

metadata data frame to be queried

Value

dataframe with the requested metadata or single metadata value

Examples

Run this code
# NOT RUN {
safetyGraphics:::getSettingsMetadata()
# Returns a full copy of settingsMetadata.Rda

safetyGraphics:::getSettingsMetadata(text_keys=c("id_col"))
# returns a dataframe with a single row with metadata for the id_col setting

safetyGraphics:::getSettingsMetadata(text_keys=c("id_col"), cols=c("label"))
# returns the character value for the specified row.

# }

Run the code above in your browser using DataLab