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)
|
Loading required package: zoo
Attaching package: 'zoo'
The following objects are masked from 'package:base':
as.Date, as.Date.numeric
[,1]
2018-12-01 -0.1142016
2018-12-02 -0.1142016
2018-12-03 -0.5920795
2018-12-04 -0.5920795
2018-12-05 -0.5920795
2018-12-06 -0.5920795
2018-12-07 -0.5920795
2018-12-08 -0.6317319
2018-12-09 -0.6317319
2018-12-10 -0.6317319
2018-12-11 -0.3845156
2018-12-12 -0.3845156
2018-12-13 -0.3845156
2018-12-14 -0.3187934
2018-12-15 -0.8389196
2018-12-16 -0.8389196
2018-12-17 -0.8389196
2018-12-18 -0.8389196
2018-12-19 -0.8389196
2018-12-20 -0.8389196
2018-12-21 -0.8389196
2018-12-22 -0.8437249
2018-12-23 -0.8437249
2018-12-24 -0.8437249
2018-12-25 -0.8437249
2018-12-26 -0.8437249
2018-12-27 -0.1837804
2018-12-28 -0.1837804
2018-12-29 -0.1837804
2018-12-30 -0.1837804
2018-12-31 -0.1837804
2019-01-01 -0.1837804
2019-01-02 -0.1837804
2019-01-03 -0.1837804
2019-01-04 -0.1837804
2019-01-05 -0.2468170
2019-01-06 -0.2468170
2019-01-07 -0.3221227
2019-01-08 -0.3221227
2019-01-09 -0.3221227
2019-01-10 -0.3221227
2019-01-11 -1.5635758
2019-01-12 -1.5635758
2019-01-13 -1.5635758
2019-01-14 -1.5635758
2019-01-15 -1.0849376
2019-01-16 -1.0849376
2019-01-17 -1.0849376
2019-01-18 -1.0826417
2019-01-19 -0.8597305
[,1]
2018-12-01 -0.55821003
2018-12-02 -0.66557304
2018-12-03 -0.83769528
2018-12-04 -0.83769528
2018-12-05 -0.83769528
2018-12-06 -0.83769528
2018-12-07 -0.83769528
2018-12-08 -0.73451409
2018-12-09 -0.73451409
2018-12-10 -0.73451409
2018-12-11 -0.73451409
2018-12-12 -0.73451409
2018-12-13 -1.90907697
2018-12-14 -0.69865346
2018-12-15 -0.67805455
2018-12-16 -0.08114997
2018-12-17 -0.08114997
2018-12-18 -0.08114997
2018-12-19 -1.37073101
2018-12-20 -0.78630164
2018-12-21 -0.78630164
2018-12-22 -1.19818832
2018-12-23 -1.08096941
2018-12-24 -0.53703060
2018-12-25 -0.20386212
2018-12-26 -0.72238319
2018-12-27 -0.72238319
2018-12-28 -0.04775699
2018-12-29 -0.27590114
2018-12-30 -0.31315886
2018-12-31 -0.31315886
2019-01-01 -0.31315886
2019-01-02 -0.58079317
2019-01-03 -0.97864307
2019-01-04 -0.08431553
2019-01-05 -0.43448677
2019-01-06 -0.43448677
2019-01-07 -0.43448677
2019-01-08 -0.43448677
2019-01-09 -0.18639233
2019-01-10 -0.18639233
2019-01-11 -0.09061055
2019-01-12 -0.08252536
2019-01-13 -0.08252536
2019-01-14 -1.61300496
2019-01-15 -0.05791786
2019-01-16 -0.05791786
2019-01-17 -0.67399164
2019-01-18 -0.53756330
2019-01-19 -0.41674193
[,1]
2018-12-01 -0.169444926
2018-12-02 -1.244548734
2018-12-03 -0.430939404
2018-12-04 100.000000000
2018-12-05 -1.332674003
2018-12-06 100.000000000
2018-12-07 -0.468956119
2018-12-08 -0.724604578
2018-12-09 -1.163247502
2018-12-10 -1.077260568
2018-12-11 100.000000000
2018-12-12 -1.587529558
2018-12-13 100.000000000
2018-12-14 100.000000000
2018-12-15 -1.352487914
2018-12-16 -0.966462543
2018-12-17 100.000000000
2018-12-18 -0.442310145
2018-12-19 100.000000000
2018-12-20 100.000000000
2018-12-21 -0.876241016
2018-12-22 -0.630641732
2018-12-23 -0.559489285
2018-12-24 -0.511300219
2018-12-25 -1.537014305
2018-12-26 100.000000000
2018-12-27 -1.552207385
2018-12-28 -0.540049527
2018-12-29 -1.198990382
2018-12-30 100.000000000
2018-12-31 -1.152618163
2019-01-01 -0.287631706
2019-01-02 -0.667788191
2019-01-03 -1.078892141
2019-01-04 -2.116922698
2019-01-05 100.000000000
2019-01-06 -1.722797231
2019-01-07 -0.767579797
2019-01-08 -0.040164036
2019-01-09 -0.400133492
2019-01-10 100.000000000
2019-01-11 100.000000000
2019-01-12 -1.463615112
2019-01-13 -0.843157567
2019-01-14 100.000000000
2019-01-15 -0.006419531
2019-01-16 -0.323314994
2019-01-17 -0.679849971
2019-01-18 -0.164563460
2019-01-19 100.000000000
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.