Extract observations from a MultiWaveAnalysis
This function permits to extract certain observations from a MultiWaveAnalysis
extractSubset(MWA, indices)
MWA
: MultiWaveAnalysis from which the desired observations will be extractedindices
: Indices that will indicate which observations will be extractedA list with two elements:
load(system.file("extdata/ECGExample.rda",package = "TSEAL")) MWA <- MultiWaveAnalysis(ECGExample, "haar", features = "Var") aux <- extractSubset(MWA, c(1, 2, 3)) MWATrain <- aux[[1]] MWATest <- aux[[2]]