Learn R Programming

basecamb (version 1.1.2)

.parse_string_to_named_vector: Parse a string to create a named list

Description

Create a named list from a standardised string of the following format:

  • key-value pairs are separated from other key-value-pairs by a comma (",")

  • key and value of the same pair are separated by an equal sign ("=")

  • quotations around individual keys and values are recommended for clarity, but do not affect functionality.

  • all values will be coerced to type character, with the exception of "NA", "TRUE" and "FALSE"

Usage

.parse_string_to_named_vector(str)

Value

named vector

Arguments

str

character with standardized pattern to be parsed

Author

J. Peter Marquardt