Learn R Programming

uGMAR (version 3.1.0)

checkAndCorrectData: Check the data is set correctly and correct if not

Description

checkAndCorrectData checks that the data is set correctly and corrects it if not. Throws an error if it can't convert the data to the correct form.

Usage

checkAndCorrectData(data, p)

Arguments

data

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

p

a positive integer specifying the order of AR coefficients.

Value

Returns a numeric column matrix containing the data.