Learn R Programming

safetyGraphics (version 2.1.1)

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)

Value

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

Arguments

textKeys

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

Examples

Run this code
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