remove_class: Remove a 'TSMP' class from an object

View source: R/misc.R

remove_classR Documentation

Remove a TSMP class from an object

Description

Remove a TSMP class from an object

Usage

remove_class(x, class)

Arguments

x

a TSMP object

class

character string with the class name

Value

the object without the class

Examples

w <- 50
data <- mp_gait_data
mp <- tsmp(data, window_size = w, exclusion_zone = 1 / 4, verbose = 0)
mp <- find_chains(mp)
# Remove the "Chain" class information
mp <- remove_class(mp, "Chain")

tsmp documentation built on Aug. 21, 2022, 1:13 a.m.