form3encadre: surrounds a character string

Description Usage Arguments Value Examples

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

Description

Adds \_bef\_ore and \_aft\_er some characters to a character string (the same for all components when it is a vector).

Usage

1
form3encadre(chaine, bef="(*)_", aft="", imp=FALSE, cr=imp)

Arguments

chaine

The character string to frame; can be a vector.

bef

What to add before

aft

What to add after

imp

Printing when TRUE or returning

cr

Must a line feed be added?

Value

character string or printing according to imp.

Examples

1
2
3
 rbsb3k("RESET"); # needed only for R checking, to be forgotten
 form3encadre('IMPORTANT', '<<< ', ' >>>');
 form3encadre('IMPORTANT', '<<< ', ' >>>', imp=TRUE);

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

Related to form3encadre in rbsb...