text3acceptance: acceptance of word within a line

Description Usage Arguments Details Value See Also Examples

View source: R/rbsa6.code.r

Description

Indicates the acceptance of a sequence within a line based on some positive and negative criteria.

Usage

1
2
3
4
5
 
  text3acceptance(line,posi,
                  b.accepted=NULL,a.accepted=NULL,
                  b.rejected=NULL,a.rejected=NULL,
                  b.line=TRUE,e.line=TRUE) 

Arguments

line

A character(1) within which is the sequence.

posi

The two positions within line of the sequence.

b.accepted

A character providing the surrounding characters before the words to determine the acceptance of the sequence.

a.accepted

A character providing the surrounding characters after the words to determine the acceptance of the sequence.

b.rejected

A character providing the surrounding characters before the words to determine the rejection of the sequence.

a.rejected

A character providing the surrounding characters after the words to determine the rejection of the sequence.

b.line

Must sequences at the beginning of a line be accepted?

e.line

Must sequences at the end of a line be accepted?

Details

posi[1]>=posi[2] case is accepted. Outside position are also accepted being valued to the bounds.

Value

TRUE or FALSE.

See Also

text3replace

Examples

1
2
3
4
5
6
 
  text3acceptance("Et pourquoi pas ?",c(1,3)); 
  text3acceptance("Et pourquoi pas ?",c(4,11),b.accepted=" "); 
  text3acceptance("Et pourquoi pas ?",c(4,11),b.accepted=letters); 
  text3acceptance("Et pourquoi pas ?",c(5,11),b.accepted=letters); 
  ## Not run: text3acceptance("Et",1:2,b.accepted="letters",b.rejected=LETTERS) 

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