rep_zoo: Replicate data vector of zoo object (time axis does not...

View source: R/Proxytools_helpers.R

rep_zooR Documentation

Replicate data vector of zoo object (time axis does not change)

Description

Replicate data vector of zoo object (time axis does not change)

Usage

rep_zoo(xin, times = 1)

Arguments

xin

Proxytibble with proxy data in 'zoo::zoo' format, or irregular time series object ('zoo::zoo'), xin can be multivariate

times

Number of replications

Value

Proxytibble with proxy data in 'zoo::zoo' format, or irregular time series object ('zoo::zoo'), xin can be multivariate

Examples

# 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)


paleovar/ptboxproxytools documentation built on June 9, 2025, 1:40 a.m.