View source: R/gen_helper-functions.R
nearest | R Documentation |
A function to assign a numeric bin between a range
nearest(number, vector)
number |
the number to check |
vector |
a numeric vector to match values to |
nearest(74.2,seq(0,100,5)) #returns 75
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.