dot-parse_string_to_named_vector: Parse a string to create a named list

.parse_string_to_named_vectorR Documentation

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)

Arguments

str

character with standardized pattern to be parsed

Value

named vector

Author(s)

J. Peter Marquardt


basecamb documentation built on May 29, 2024, 11:03 a.m.