Remove a TSMP class from an object

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)
#> Error in find_chains(mp): First argument must be an object of class `MatrixProfile`.
# Remove the "Chain" class information
mp <- remove_class(mp, "Chain")
#
# TODO: Refactor
#