interp | R Documentation |
Interpolates NA's by filling them with the average of the previous and subsequent values.
interp(my_data, na.rm = FALSE)
my_data |
vector of data |
na.rm |
Logical indicating whether a logical value indicating whether NA values should be stripped before the computation proceeds. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.