View source: R/Proxytools_helpers.R
rep_zoo | R Documentation |
Replicate data vector of zoo object (time axis does not change)
rep_zoo(xin, times = 1)
xin |
Proxytibble with proxy data in 'zoo::zoo' format, or irregular time series object ('zoo::zoo'), xin can be multivariate |
times |
Number of replications |
Proxytibble with proxy data in 'zoo::zoo' format, or irregular time series object ('zoo::zoo'), xin can be multivariate
# Load Monticchio example data from PTBoxProxydata
library(PTBoxProxydata)
mng <- PTBoxProxydata::ProxyDataManager()
monticchiodata <- PTBoxProxydata::load_set(mng,'monticchio_testset',zoo_format = 'zoo', force_file=TRUE)
# Clean proxy data time series
monticchiodata_rep <- rep_zoo(monticchiodata,5)
# Clean zoo time series
monticchiozoo_rep <- rep_zoo(monticchiodata$proxy_data[[1]],5)
# Plot zoo data
plot(monticchiodata_rep$proxy_data[[1]])
plot(monticchiozoo_rep)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.