as.zoo.uts_vector: Coercion to zoo

Description Usage Arguments Value Examples

View source: R/coercions.R

Description

Coercion to zoo

Usage

1

Arguments

x

a "uts_vector" object.

...

further arguments passed to or from methods.

Value

A zoo object.

Examples

1
2
3
4
5
6
7
8
if (requireNamespace("zoo", quietly = TRUE)) {
  # Bivariate uts_vector with synchronized observation times
  utsv <- c(a=ex_uts(), b=ex_uts() + 3)
  zoo::as.zoo(utsv)
  
  # # Bivariate uts_vector with non-synchronized observation times
  zoo::as.zoo(ex_uts_vector())
}

andreas50/utsMultivariate documentation built on Sept. 27, 2021, 10:33 p.m.