char2chars: transforms a single character into a character vector

Description Usage Arguments Details Value Examples

View source: R/f0.rbsb1.code.r

Description

Just doing a character vector from a single character using sep to separate the different components.

Usage

1
char2chars(cara, sep=rbsb.sep0, rsep="no_action", no_value=character(0))

Arguments

cara

The single character to transform.

sep

Separator for the splitting when "", no splitting is done.

rsep

Indicates if repetitions of sep must be considered as signicant or not. If "no_action" then their repetitions will be ignored if not no_value components will be introduced.

no\_value

value to introduce for empty components.

Details

Argument sep is a possible separator. If empty no splitting is performed.

Value

a character vector if everything was good. a 'faux' object otherwise.

Examples

1
2
3
4
5
6
 rbsb3k("reset"); # for R checking convenience
 char2chars("A B C");
 char2chars("A B C", " ");
 char2chars("A B C ");
 char2chars("A B C ", rsep="");
 char2chars("0.1 0.9 // 0.5 0.5 // 0.9 0.1", "//");

rbsb documentation built on May 2, 2019, 4:41 p.m.

Related to char2chars in rbsb...