R/checkdata.R

Defines functions checkData

Documented in checkData

checkData = function(data){
    if(!is.numeric(data)){
        stop("Only numeric data allowed")
    }
    if(anyNA(data)){stop("Missing value: NA is not allowed in the data as changepoint methods are only sensible for regularly spaced data.")}
}
rkillick/changepoint.online documentation built on Sept. 26, 2020, 11:01 p.m.