Efficient binary search for character vectors

1 |

`val` |
values |

`tab` |
table to find values in |

`L` |
lower bound |

`H` |
upper bound |

Martin Morgan, Neal Fultz

http://stackoverflow.com/questions/20133344/find-closest-value-in-a-vector-with-binary-search/ and https://stat.ethz.ch/pipermail/r-help/2011-April/274182.html

1 |

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

All documentation is copyright its authors; we didn't write any of that.