is_locf | R Documentation |
LOCF meaning last observation carried forward. lags the vector by 1, then
compares with itself. For doubles it uses float comparison via
dplyr::near
, otherwise it uses equality. NA
's and NaN
's are
considered equal to themselves and each other.
is_locf(vec, tolerance)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.