filter8text: filters components of a character.

Description Usage Arguments Value See Also Examples

View source: R/rbsa0.code.r

Description

For each component of a character vector, checks with function belong9 if it satisfies the conditions given by the other arguments, the component is removed (or selected).

Usage

1
2
3
4
 
  filter8text(text,pattern,remove=TRUE,
              exact=FALSE,how="a",lower=FALSE,
              monitor=rbsa0$monitor$v) 

Arguments

text

The character to be filtered.

pattern

(character) the character string(s) to be found in each component.

remove

Must the conforming components be removed (or selected)?

exact

When exact, one component must be strictly identical, if not a subtring is sufficient.

how

Indicates what to do when length(sch)>1. The choice are v: a logical vector gives back each check independently; 1: returns TRUE when at least one of the component belongs to the series ch and a when all components must comply to get TRUE.

lower

Must the comparisons being done after case lowering?

monitor

List of constants indicating the monitoring choices, see the rbsa0$monitor$v provided object as an example.

Value

A character comprising the non-removed (or selected) components of the initial components.

See Also

belong9

Examples

1
2
3
4
5
 
  filter8text(rbsa0$text2$v,"little",exact=FALSE,lower=TRUE,remove=FALSE) 
  filter8text(rbsa0$text2$v,"On",exact=8,lower=TRUE,remove=FALSE) 
  filter8text(rbsa0$text2$v,"On",        lower=TRUE,remove=FALSE) 
  filter8text(rbsa0$text2$v,"On",exact=8,lower=TRUE,remove=TRUE) 

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