impute_na | R Documentation |
impute_na
is a function that takes a numeric vector x
and it
inserts the average value of the values on the right and left of the missing
observations. If there is data on both sides a number is returned, if not NA.
impute_na(x)
x |
Numeric vector |
Used in scripts: Robust function: FALSE
Returns x
with inserted missing values if one or more of
them have observations on both sides
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.