Subset generators
finite_head_prop(x, y, prop_tail = 1) finite_tail_prop(x, y, prop_head = 1) finite_tail(x, y, n_tail = sum(is.finite(x) & is.finite(y))) finite_head(x, y, n_head = sum(is.finite(x) & is.finite(y)))
x | An independent variable like depth or cumulative dry mass. |
---|---|
y | A dependent variable that responds exponentially to |
prop_tail, prop_head | A minimum proportion of finite values that should be included in the output |
n_tail, n_head | A minimum number of finite values that should be included in the output |
A logical vector that can be used to subset x
and y
.
#> [1] TRUE TRUE FALSE FALSE FALSEfinite_tail(x, y, 2)#> [1] FALSE TRUE FALSE FALSE TRUEfinite_head_prop(x, y, 0.5)#> [1] TRUE TRUE FALSE FALSE FALSEfinite_tail_prop(x, y, 0.5)#> [1] FALSE TRUE FALSE FALSE TRUE