namesToString {toolbox} | R Documentation |
Pastes the names of a object into a string, optionally quoting the names.
namesToString(x, collapse = ",", quote = FALSE)
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. |
A string.
namesToString(c("test" = 1, "this" = 2))