Functions to Manipulate Character Objects
Convert between strings and character objects. Test for ability to become numeric.
1 2 3
character object to convert (
character, the separator to insert or separator(s) to match (
logical, retain the separator in the output (TRUE) or discard it (FALSE) (
c2s joins the elements of a character object into a character object of length 1 (a string), and
s2c splits a string into elements of a character object of length n+1, where n stands for the number of separators in the string.
sep gives the separator to insert between successive items (in
c2s) or the separator(s) to find in a string (in
s2c). The default value of
sep is a space (" ") in
c2s. The default value for
sep is NULL in
s2c, indicating a separator at every position of
x (the result in this case has length equal to
TRUE (the default) instructs
s2c to keep the separating values in the output. The maximum length of the object returned by
s2c is determined by
n; the default value of
NULL indicates an unrestricted length.
can.be.numeric returns a value of TRUE or FALSE for each element of
axis.label return character values.
can.be.numeric returns logical.
1 2 3 4 5 6 7
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.