logical. Should leading/trailing ‘NA’'s be removed?
The default for xts FALSE is different than the
default S3 method in the zoo package.
fromLast
logical. Cause observations to be carried backward rather
than forward. Default is FALSE.
maxgap
runs of more than ‘maxgap’ will retain ‘NA’s after the
maximum gap specified. See na.locf in the zoo package.
…
unused
Value
See the documentation in zoo.
Details
This is the xts method for the S3 generic na.locf.
The primary difference to note is that after the ‘NA’
fill action is carried out, the default it to leave
trailing or leading ‘NA’'s in place. This is different
than zoo behavior.