Learn R Programming

biwavelet (version 0.20.22)

check.data: Check the format of time series

Description

Check the format of time series

Usage

check.data(y, x1 = NULL, x2 = NULL)

Value

Returns a named list containing:

t

Time steps

dt

Size of a time step

n.obs

Number of observations

Arguments

y

Time series y in matrix format (n rows x 2 columns). The first column should contain the time steps and the second column should contain the values.

x1

Time series x1 in matrix format (n rows x 2 columns). The first column should contain the time steps and the second column should contain the values.

x2

Time series x2 in matrix format (n rows x 2 columns). The first column should contain the time steps and the second column should contain the values.

Author

Tarik C. Gouhier (tarik.gouhier@gmail.com)

References

Torrence, C., and G. P. Compo. 1998. A Practical Guide to Wavelet Analysis. Bulletin of the American Meteorological Society 79:61-78.

Examples

Run this code
t1 <- cbind(1:100, rnorm(100))
check.data(y = t1)

Run the code above in your browser using DataLab