(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

1 | ```
which_token_worker(x, y1, y2)
``` |

`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 |

petermeissner/rtext documentation built on May 24, 2017, 4:32 a.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.