Description Usage Arguments Value Author(s) Examples
View source: R/interpolate_values.R
Obtain the values of a variable of interest corresponding to a
continuous variable (t_out
) using
1 | interpolate_values(t_out, t_in, values_in, direction = "down")
|
t_out |
A numeric vector of size n. |
t_in |
A numeric vector of size m. |
values_in |
A character or numeric vector of size m. |
direction |
A string equal to |
A vector of size n.
Guillermo Basulto Elias
1 2 3 4 | x <- c(1, 2, 4, 5)
y <- c(1, 3, 7)
z <- c("a", "b", "a")
interpolate_values(x, y, z)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.