Check and/or Fix a vector

ts_checkfix(
  y,
  checkNumericVector = TRUE,
  checkWholeNumbers = FALSE,
  checkTimeVector = FALSE,
  checkPow2 = FALSE,
  checkScale = FALSE,
  checkSummationOrder = FALSE,
  checkNonStationarity = FALSE,
  checkNonHomogeneity = FALSE,
  fixNumericVector = FALSE,
  fixWholeNumbers = FALSE,
  fixTimeVector = FALSE,
  fixPow2 = FALSE,
  fixNA = TRUE,
  fixScale = FALSE,
  fixSummationOrder = FALSE,
  fixNonStationarity = FALSE,
  fixNonHomogeneity = FALSE
)

Arguments

y

A time series object or numeric vector

checkNumericVector

is 1D numeric vector?

checkWholeNumbers

contains only wholenumbers?

checkTimeVector

has time vector?

checkPow2

length is power of 2?

checkScale

checkScale

checkSummationOrder

checkSummationOrder

checkNonStationarity

checkNonStationarity

checkNonHomogeneity

checkNonHomogeneity

fixNumericVector

return a 1D numeric vector (WARNING: Data frames and Matrices with NCOL > 1 wil be converted to long form)

fixWholeNumbers

fixWholeNumber

fixTimeVector

fixTimeVector

fixPow2

foxPow2

fixNA

fixNA

fixScale

fixScale

fixSummationOrder

fixSummationOrder

fixNonStationarity

fixNonStationarity

fixNonHomogeneity

fixNonHomogeneity

Value

A 'check' report and/or a 'fixed' vector y.