Description Usage Arguments Value Examples
View source: R/f0.rbsb1.code.r
Checks if some string(s) belong(s) to a series of strings. When
exact
is FALSE, returns TRUE if the character string
sch
is included at least once into the character string
ch
.
sch
can be a vector, in that case, the check is
made for each of its components. According to how
the returned
value is vectorial or scalar. When sch
is zero length then
TRUE
is returned but if not and ch
is zero length then
FALSE
is returned.
1 | expr3present(sch, ch, exact=FALSE, how="a")
|
sch |
( |
ch |
( |
exact |
When exact, one component must be strictly identical, if not a subtring is sufficient. |
how |
Indicates what to do when |
A logical vector with length of sch
.
1 2 3 4 5 6 | rbsb3k("RESET"); # needed only for R checking, to be forgotten
expr3present('a', 'non');
expr3present('o', c('non', 'oui'));
expr3present(c("o", "oui"), c('non', 'oui'));
expr3present(c("o", "oui"), c('non', 'oui'), how="v");
expr3present(c("A[SEX]", "A[AGE]"), c("A[AGE]", "A[SEX]"), how="a")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.