Description Usage Arguments Details Value See Also Examples

fast `%in%`

for integers

1 |

`x` |
an integer vector of values to be looked-up |

`table` |
an integer vector used as lookup-table |

`retFUN` |
a function that coerces |

determines the range of the integers and checks if the density justifies use
of a bit vector; if yes, maps `x`

or `table`

– whatever is smaller
– into a bit vector and searches the other of `table`

or `x`

in
the it vector; if no, falls back to `%in%`

a boolean vector coerced to `retFUN`

1 2 | ```
bit_in(1:2, 2:3)
bit_in(1:2, 2:3, retFUN=as.logical)
``` |

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.