form3join: formats a series of names or a similar list

Description Usage Arguments Value See Also Examples

View source: R/rbsa1.code.r

Description

returns a scalar character of the components of a character surrounded by any kind of parenthesis (each and the whole) separated with the same separator.
Easy to undestand when applying the examples.

Usage

1
2
3
4
5
 
  form3join(vcara,none="-",
            OPA="{",CPA="}",
            opa="(",cpa=")",sep="+",
            imp=FALSE,cr=imp) 

Arguments

vcara

Character vector to be considered.

none

The internal result when vcara is length zero. When it is character(0) then the global parenthesis are not given contrary when it is "".

OPA

The opening parenthesis to surround the entire list.

CPA

The closing parenthesis to surround the entire list.

opa

The opening parenthesis to surround each component.

cpa

The closing parenthesis to surround each component.

sep

The symbol to separate each component.

imp

Must the result be printed (with cat) or returned?

cr

Must a line feed be added at the end?

Value

A character string or nothing when imp is TRUE

See Also

form3split

Examples

1
2
3
4
5
6

rbsa documentation built on May 2, 2019, 6:07 p.m.