cc {NMdata} | R Documentation |
Create character vectors without quotation marks
Description
When creating character vectors with several elements, it becomes a lot of quotes to type. cc provides a simple way to skip the quotes - but only for simple strings.
Usage
cc(...)
Arguments
... |
The unquoted names that will become character values in the returned vector. |
Details
Don't use cc with any special characters - only alphanumerics and no spaces supported. Also, remember that numerics are converted using as.character. Eg, this means that leading zeros are dropped.
Value
A character vector
See Also
cl
Examples
cc(a,b,`a b`)
cc(a,b,"a b")
## be careful with spaces and special characters
cc( d)
cc(" d")
cc()
## Numerics are converted using as.character
cc(001,1,13e3)
[Package NMdata version 0.1.6 Index]