too_far_to_na {gratia} | R Documentation |
Set rows of data to NA
if the lie too far from a reference set of values
Description
Set rows of data to NA
if the lie too far from a reference set of values
Usage
too_far_to_na(smooth, input, reference, cols, dist = NULL)
Arguments
smooth |
an mgcv smooth object |
input |
data frame containing the input observations and the columns to
be set to |
reference |
data frame containing the reference values |
cols |
character vector of columns whose elements will be set to |
dist |
numeric, the distance from the reference set beyond which
elements of |
[Package gratia version 0.9.2 Index]