R/RcppExports.R

Defines functions which_token_worker

Documented in which_token_worker

# Generated by using Rcpp::compileAttributes() -> do not edit by hand
# Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393

#' (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
#' @param x a vector of type numeric; a number to be placed into a span
#' @param y1 a vector of type numeric; first element of span
#' @param y2 a vector of type numeric; last element of span
#' @keywords internal
which_token_worker <- function(x, y1, y2) {
    .Call('_rtext_which_token_worker', PACKAGE = 'rtext', x, y1, y2)
}

Try the rtext package in your browser

Any scripts or data that you put into this service are public.

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