Function to complete a time-indexed series (either
zoo) by combining it with another series to avoid NAs. The function has a third argument "fill" to chose whether to leave NA, interpolate or repeate the last value when both vectors are missing.
tsComplete(x, y, fill = "fill")
main data series (either
secondary series (either
method to treat NA's after combining
zoo. Converts to
zoo if one of the parameters is
Returns either a
ts (default) or
1 2 3 4 5 6 7 8 9 10
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.