Check and/or Fix a vector
Usage
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
See also
Other Time series operations:
ts_center()
,
ts_changeindex()
,
ts_detrend()
,
ts_diff()
,
ts_discrete()
,
ts_duration()
,
ts_embed()
,
ts_integrate()
,
ts_levels()
,
ts_peaks()
,
ts_permtest_block()
,
ts_permtest_transmat()
,
ts_rasterize()
,
ts_sd()
,
ts_slice()
,
ts_slopes()
,
ts_standardise()
,
ts_sumorder()
,
ts_symbolic()
,
ts_trimfill()
,
ts_windower()