View source: R/Select2FramingValues.R
Select2FramingValues | R Documentation |
Select the 2 framing values around a given value
Select2FramingValues(i, Y, X)
i |
Position of the value from which to find the framing values |
Y |
Vector of values of the variable from which to select the 2 values around i (numeric) |
X |
Vector of values of the explanatory variable of the variable Y (thus also to filter) (numeric) |
2 vectors of 2 values each (list):
yval: the 2 Y values around i
xval: the 2 X values corresponding to the two yval values
DBHCor = c(17.7, 26.2, NA, 34.6, 34.6, 34.6, 38.0)
Time = c(1998, 2008, 2016, 2017, 2018, 2019, 2021)
Select2FramingValues(i = 3, Y = DBHCor, X = Time)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.