Learn R Programming

tsmp (version 0.4.15)

remove_class: Remove a TSMP class from an object

Description

Remove a TSMP class from an object

Usage

remove_class(x, class)

Value

the object without the class

Arguments

x

a TSMP object

class

character string with the class name

Examples

Run this code
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")

Run the code above in your browser using DataLab