form3norma: removes redundant characters into a character string

Description Usage Arguments Value Examples

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

Description

Removes redundant characters into a character string. The most immediate use (default) is to transform sequences of " " into a simple " ". More generally, removes all sequences of redu before bef or after aft.

Usage

1
form3norma(cha, redu="", bef="", aft="")

Arguments

cha

The character to normalize, can be of length greater than one.

redu

The character to remove, single or not.

bef

The ante-tag, single or not.

aft

The post-tag, single or not.

Value

The transformed character (with the same length than cha.

Examples

1
2
3
4
 rbsb3k("reset"); # only necessary for R checking
 form3norma(" pour voir ");
 form3norma(c(" A > B ", "B > C", "D"), bef=">");
 form3norma(c(" A > B ", "B > C", "D"), bef=">", aft=">");

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

Related to form3norma in rbsb...