Description Usage Arguments Details See Also Examples
Generic function for filling NA
values or specified positions.
1 2 3 4 5 6 7 8 9 |
object |
an object. |
fill |
a three component list or a vector that is coerced to a
list. Shorter objects are recycled. The three components
represent the fill value to the left of the data, within the
interior of the data and to the right of the data,
respectively. The value of any component may be the keyword
|
ix |
logical. Should be the same length as the number of time points. Indicates which time points not to fill. This defaults to the non-NA values. |
... |
further arguments passed to methods. |
na.fill
is a generic function for filling NA
or indicated values.
It currently has methods for the time series classes "zoo"
and "ts"
and a default method based on the "zoo"
method.
Furthermore, na.fill0
works with plain vectors and "Date"
objects.
It also works with "zoo"
objects provided that no fill
component is NULL
.
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.