li2cha: transforms a list into a character vector

Description Usage Arguments Value Examples

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

Description

The resulting vector will have as many components as list. Each one being the concatenation of its own components interpreted as.character with tw as seperator.

Usage

1
li2cha(liste, tw="", nam=NULL)

Arguments

liste

The list to

nam

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

tw

Separator for each component.

Value

a character vector with possibly named components

Examples

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

rbsb documentation built on May 31, 2017, 1:45 a.m.