which_token_worker: (function to check which chars belong to which token) takes a...

Description Usage Arguments

View source: R/RcppExports.R

Description

(function to check which chars belong to which token) takes a vector of xs to check if these lie between pairs of ys and if so returning their index; assumes xs and ys are sorted; returns only the first span index which enclosing the x

Usage

1
which_token_worker(x, y1, y2)

Arguments

x

a vector of type numeric; a number to be placed into a span

y1

a vector of type numeric; first element of span

y2

a vector of type numeric; last element of span


rtext documentation built on Jan. 28, 2021, 9:05 a.m.