Concatenates one or more inputs into a single string without quotes. Inputs can be unquoted symbols (e.g., variable names), quoted strings, numbers, or simple expressions. Useful for creating strings from variable names or data without including quotes.
Arguments
- ...
One or more inputs: unquoted symbols (e.g.,
A
,B
), quoted strings (e.g.,"text"
), numbers (e.g.,10
), or simple expressions (e.g.,1:3
). Invalid R symbols (e.g.,12a
) will cause an error unless quoted.- collapse
An optional single character string to separate concatenated elements (e.g.,
""
, " "or
","). If
NULL` (default), returns a character vector of individual elements.- unique
Logical. If
TRUE
, returns only unique values. Default isFALSE
.- sort
Logical. If
TRUE
, sorts the result alphanumerically using gtools::mixedsort. Default isFALSE
.