Description Usage Arguments Details Value See Also Examples
The function parses parameters in the form of
KEY1=VAL1,KEY2=VAL2,KEY3=VAL3
into data.frame
.
1 2 3 4 5 6 7 8 |
str |
Character string |
collapse |
Collapse character used in the string |
sep |
Seperator used in the string |
colnames |
Column names of the returned |
trim |
Logical, whether additional spaces should be trimmed |
... |
Further parameters passed to |
If input string is NULL
, the function returns NULL
. This
can be useful in case the parameter is optional and not specified.
A data.frame
containing keys and values
1 2 | parsePairs("A=3,B=4,C=5", collapse=",", sep="=")
parsePairs("A:3|B:4|C:5", collapse="|", sep=":")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.