Learn R Programming

TSEAL (version 0.1.3)

extractSubset: Extract observations from a MultiWaveAnalysis

Description

This function permits to extract certain observations from a MultiWaveAnalysis

Usage

extractSubset(MWA, indices)

Value

A list with two elements:

  • MWA: The MultiWaveAnalysis provided minus the extracted observations.

  • MWAExtracted: A new MultiWaveAnalysis with the extracted observations

Arguments

MWA

MultiWaveAnalysis from which the desired observations will be extracted

indices

Indices that will indicate which observations will be extracted

Examples

Run this code
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]]

Run the code above in your browser using DataLab