Description Usage Arguments Details Value Author(s) References See Also Examples
View source: R/aveytoolkit_RepeatBefore.R
Replaces NAs with the latest non-NA value
1 | RepeatBefore(x)
|
x |
a vector of values |
NA values will be replaced by the most recent value with a lower index. If there is no non-NA value before the NA appears, it will remain NA.
a vector of values
Ruben
http://stackoverflow.com/questions/7735647/replacing-nas-with-latest-non-na-value
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.