Description Usage Arguments Value Note Author(s) Examples
cpos, cposV
finds the first position of a substring;
cposR
returns a list with starting and ending positions, works only with a single string;
issubstr
checks if is a substring
1 2 3 4 |
str |
string to examine |
vstr |
vector of strings to examine |
sub |
(vector of) substring to find |
start,vstart |
(vector of) integer, position(s) of start of search |
restrict |
vector of lower and upper index the search should be restricted to. If missing, whole 'str' is taken. |
cpos,cposL,cposV
number, if found, NA otherwise.
cposR
list(first,last) for each occurrence of sub
within the restriction restrict
of str
; If there is none, then first
=NA,last
=NA.
parameters in cposV
will be recycled, so that all have the same (maximum) length.
Christian W. Hoffmann <christian@echoffmann.ch>
1 2 3 4 5 6 7 8 9 10 11 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.