Learn R Programming

rtext (version 0.1.22)

which_token_worker: (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

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

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