Skip to content

Commit

Permalink
Improved filtEMG robustness
Browse files Browse the repository at this point in the history
  • Loading branch information
alesantuz committed Nov 12, 2024
1 parent a5d4cd8 commit 33dd96e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion R/filtEMG.R
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ filtEMG <- function(x,
min_sub = TRUE,
ampl_norm = TRUE) {
if (!inherits(x, "EMG")) {
stop("Object is not of class EMG, please create objects in the right format with \"rawdata\"")
stop("Object is not of class EMG, please create objects in correct format with \"rawdata\"")
} else {
cycles <- data.frame(x$cycles)
x <- x$emg
Expand Down
2 changes: 1 addition & 1 deletion R/subsetEMG.R
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ subsetEMG <- function(x,
cy_max,
cy_start = 1) {
if (!inherits(x, "EMG")) {
stop("Object is not of class EMG, please create objects in the right format with \"rawdata\"")
stop("Object is not of class EMG, please create objects in correct format with \"rawdata\"")
} else {
cycles <- data.frame(x$cycles)
x <- x$emg
Expand Down

0 comments on commit 33dd96e

Please sign in to comment.