Description Usage Arguments Details Value Author(s) See Also Examples
These functions return a function for determining if a given prefix, suffix, or set of characters passed to this function exists in a character string passed to the returned function.
1 2 3 |
aPrefix |
character string to be used as the prefix to be checked for |
aSuffix |
character string to be used as the suffix to be checked for |
toCheck |
|
what |
|
The prefix (or suffix) is passed to hasPrefix
(or
hasSuffix
) and then the returned function can be used to check
for the existence of that prefix (suffix) in a string passed to that
function.
hasChar is a more general function that determines the existence of prefix, sufix, or a set of a characters in a character string passed to the returned function.
A function which itself returns a logical (of length 1)
indicating if the prefix/suffix is found (TRUE
) or not.
Jianhua (John) Zhang
1 2 3 4 5 6 7 8 9 10 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.