check_and_correct_data: Check that the data is set correctly and correct if not

Description Usage Arguments Value

View source: R/argumentChecks.R

Description

check_and_correct_data checks that the data is set correctly and throws an error if there is something wrong with the data.

Usage

1

Arguments

data

a numeric vector or class 'ts' object containing the data. NA values are not supported.

p

a positive integer specifying the autoregressive order of the model.

Value

Returns the data as a class 'ts' object.


uGMAR documentation built on Jan. 24, 2022, 5:10 p.m.