Linear interpolation of NAs in a vector using 'zoo::na.approx'. The NAs at the beginning or at the end are replaced by their first non NA neighbour
A numeric vector with NAs
A numeric vector without NA
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.