wstringapply {ecolitk} | R Documentation |
Apply a function on a window sliding on a string
wstringapply(x, SIZE, SLIDE, FUN, ...)
x |
The string |
SIZE |
The size of the window (number of characters). |
SLIDE |
offset to move at each slide |
FUN |
The function to be applied |
... |
optional parameter for the function FUN |
Apply the function FUN
to substrings of x
of length SIZE
.
A list of size nchar(x) - SIZE
.
~~who you are~~