Learn R Programming

wikiTools (version 1.2.8)

cc: 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 = ",")

Value

A vector of the split segments of the text.

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.

Author

Modesto Escobar, Department of Sociology and Communication, University of Salamanca. See https://sociocav.usal.es/blog/modesto-escobar/

Details

Returns inside the text are omitted.

Examples

Run this code
## A text with three names separated with commas is converted into a vector of length 3.
cc("Pedro Almodovar, Diego Velazquez, Salvador Dali")

Run the code above in your browser using DataLab