namesToString {toolbox} | R Documentation |
Pastes the names of a object into a string, optionally quoting the names.
Description
Pastes the names of a object into a string, optionally quoting the names.
Usage
namesToString(x, collapse = ",", quote = FALSE)
Arguments
x |
A named object (vector, list, data.frame) |
collapse |
A string to separate the collapsed names. |
quote |
TRUE/FALSE, if TRUE, adds quotes to the names. |
Value
A string.
Examples
namesToString(c("test" = 1, "this" = 2))
[Package toolbox version 0.1.1 Index]