Provided 'given' and 'to_be_tested_whether_within' numeric vectors, test whether elements of 'to_be_tested_whether_within' are within provided 'margin' up and down the elements of 'given'
1 | withinMargin(given, to_be_tested_whether_within, margin = 0.1)
|
given |
Numeric vector acting as given target |
to_be_tested_whether_within |
Numeric vector to be tested whether is within a given window defined by 'given' (defines mid-point of the window) and 'margin' |
margin |
A numeric of percentage in decimal form defining the upper and lower boundary of the window. E.g. for 0.1 use 0.05. Defults to 0.1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.