na_fill | R Documentation |
Replace NA entries in a vector by the last non-NA value. If the first entry of the vector is NA, it is replaced by the first non-NA value. If the vector passed as input doesn't contain NAs, it is returned as is.
na_fill(x)
x |
Vector in which NAs should be removed |
Copy of x in which NAs have been replaced by nearest available value.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.