Description Usage Arguments Value Author(s) Examples
Given a vector, applies LOCF transform to this vector to impute missing data and also impute first or last potential missing observations with resp. the first obs. available or the last obs. available depending on the fromLast argument chosen in na.locf.
1 | completed_LOCF(x,fromLast=F)
|
x |
a vector with missing data you need to impute |
fromLast |
Boolean indicating whether we
want to apply locf from the first observation ( |
A vector with the same length whose missing data have been imputed with the extended locf method.
Benjamin Schannes
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.