cha2li: transforms a character into a list

Description Usage Arguments Details Value Examples

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

Description

Just doing a list of single (or not) characters from a a character vector, taking care of the names in a due way.

Usage

1
cha2li(cara, tw="", nam=NULL)

Arguments

cara

The vector of characters to transform. When is.null(nam) and they exist, the names of the vector are reported to the list.

tw

Separators for the second step splitting.

nam

Names to be apply to the created list. The exact number is expected, as well as non repeated names.

Details

Argument 'tw' is a possible separator. If empty only one character each component. If not each caracter is splitted with it...

Value

a list of single character with possibly named components

Examples

1
2
3
 rbsb3k("RESET"); # needed only for R checking, to be forgotten
 cha2li(c("A B C", "D E"));
 cha2li(c("A B C", "D E"), " ");

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

Related to cha2li in rbsb...