wstringapply: Apply a function on a window sliding on a string

Description Usage Arguments Details Value Author(s)

View source: R/wapply.R

Description

Apply a function on a window sliding on a string.

Usage

1
wstringapply(x, SIZE, SLIDE, FUN, ...)

Arguments

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

Details

Apply the function FUN to substrings of x of length SIZE.

Value

A list of size nchar(x) - SIZE.

Author(s)

L, Gautier


ecolitk documentation built on Nov. 8, 2020, 5:29 p.m.