Learn R Programming

safetyGraphics (version 2.0.0)

textKeysToList: Helper function to convert keys from text to nested lists

Description

Convert settings keys from text vectors (using the "--" delimiter) to a list of lists

Usage

textKeysToList(textKeys)

Arguments

textKeys

a list (or vector) of character keys using the "--" delimiter to indicate hierarchy

Value

A list of unnamed lists, with position in the nested list indicating hierarchy

Examples

Run this code
# NOT RUN {
safetyGraphics:::textKeysToList("id_col") 
#list(list("id_col"))

#list(list("id_col"),list("measure_col","label"))
safetyGraphics:::textKeysToList(c("id_col","measure_col--label")) 

# }

Run the code above in your browser using DataLab