cc: Converts a text separated by commas into a character vector.

View source: R/wikiTools.R

ccR 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("Pablo Picasso, Diego Velazquez, Salvador Dali")

wikiTools documentation built on March 24, 2022, 9:05 a.m.