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

View source: R/textKeysToList.R

textKeysToListR Documentation

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

safetyGraphics:::textKeysToList("id_col") 
#list(list("id_col"))

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


safetyGraphics documentation built on Dec. 28, 2022, 1:58 a.m.