Description Usage Arguments Value Author(s) Examples
Fill a missing value (NA) with any of previous value, next value, or a user supplied value.
1 2 3 | fill.fwd(x)
fill.bwd(x)
fill.value(x,value)
|
x |
An Fts object |
value |
a value to replace the missing values |
an Fts object
Whit Armstrong
1 2 3 4 5 6 7 8 9 10 11 | x <- fts(index=seq(from=Sys.Date(),by="days",length.out=50),rnorm(50))
x[x > 0,] <- NA
fill.fwd(x)
x <- fts(index=seq(from=Sys.Date(),by="days",length.out=50),rnorm(50))
x[x > 0,] <- NA
fill.bwd(x)
x <- fts(index=seq(from=Sys.Date(),by="days",length.out=50),rnorm(50))
x[x > 0,] <- NA
fill.value(x,100.0)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.