withinMargin: Am I wihthin a given margin window?

Description Usage Arguments

View source: R/withinMargin.R

Description

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'

Usage

1
withinMargin(given, to_be_tested_whether_within, margin = 0.1)

Arguments

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


msxakk89/dat documentation built on Aug. 3, 2020, 6:39 p.m.