cc {wikiTools} | R Documentation |
Converts a text separated by commas into a character vector.
Description
Converts a text separated by commas into a character vector.
Usage
cc(text, sep = ",")
Arguments
text |
Text to be separated. |
sep |
A character of separation. It must be a blank. If it is another character, trailing blanks are suppressed. |
Details
Returns inside the text are omitted.
Value
A vector of the split segments of the text.
Author(s)
Modesto Escobar, Department of Sociology and Communication, University of Salamanca. See https://sociocav.usal.es/blog/modesto-escobar/
Examples
## A text with three names separated with commas is converted into a vector of length 3.
cc("Pedro Almodovar, Diego Velazquez, Salvador Dali")
[Package wikiTools version 1.2.7 Index]