Description Usage Arguments Details Value Author(s) See Also Examples
Find index in b that is closest to a.
1 2 3 |
a |
numeric vector |
b |
numeric vector |
maxAbsDiff |
if maximum difference between best b and a[i] is larger than this, return NA for index i |
isSortedA |
if TRUE assures that A is sorted to speed up |
isSortedB |
if TRUE assures that B is sorted to speed up |
allFiniteB |
if TRUE assures that B contains only finite entries to speed up |
chunkSize |
length of the vector to calculate difference for each point in a |
For each a_i the c_i=j will be selected so that b_j is closest to a_i among all b If a_i is not finite, then c_i is NA
vector of length of a, with each element holding an index from b
Thomas Wutzler
twMisc
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.