uts_vector: Unevenly-spaced Time Series Vector

Description Usage Arguments Value Methods (by generic) Note See Also Examples

View source: R/uts_vector.R

Description

Create a vector of unevenly spaced time series ("uts_vector").

is.uts_vector returns TRUE if its argument is a "uts_vector" object.

Usage

1
2
3
4
5
6
7
8
9
uts_vector(...)

## S3 method for class 'uts'
c(...)

## S3 method for class 'uts_vector'
c(...)

is.uts_vector(x)

Arguments

...

zero or more uts objects.

x

an R object.

Value

An object of class "uts_vector".

Methods (by generic)

Note

An abstract class "uts_virtual" exists from which "uts", "uts_vector", and "uts_matrix" inherit: it is used to allow operations such as subtraction to mix the classes.

See Also

rep.uts, uts_vector_long, uts_vector_wide for alternative constructors.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
# Two equivalent constructors
uts_vector(apples=ex_uts(), oranges=ex_uts2())
c(apples=ex_uts(), oranges=ex_uts2())

# Create "uts_vector" out of both "uts" and "uts_vector" objects
c(ex_uts(), ex_uts_vector(), kiwis=ex_uts2())

# Empty "uts_vector"
uts_vector()

# The first two test return TRUE, the other returns FALSE
is.uts_vector(uts_vector())
is.uts_matrix(uts_matrix())      # "uts_matrix" inherits from "uts_vector"
is.uts_vector(ex_uts())

andreas50/utsMultivariate documentation built on Aug. 15, 2018, 11:11 p.m.