parseParamStringWNames | R Documentation |
This function parses a named vector and intermingles the names and values into a single string, with specified separators for the odd and even elements.
parseParamStringWNames(named.vec, sep1 = ": ", sep2 = " | ")
named.vec |
A named vector to be parsed. Default: |
sep1 |
A string separator for odd elements. Default: |
sep2 |
A string separator for even elements. Default: |
A single string with intermingled names and values from the named vector.
named.vec <- c(ULm = "15", DLm = "67", Matm = "33", `EN-Lineage.m` = "21")
parseParamStringWNames(named.vec)
# "ULm: 15 | DLm: 67 | Matm: 33 | EN-Lineage.m: 21"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.