Skip to content

Commit

Permalink
Remove NA in output signal
Browse files Browse the repository at this point in the history
  • Loading branch information
YuhangTom committed Feb 4, 2024
1 parent f29550d commit 6933476
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/x3p_raw_sig_vec.R
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ x3p_raw_sig_vec <- function(x3p, ifplot = FALSE) {

raw_sig <- x3p_df %>%
group_by(x) %>%
summarise(sig = median(value, na.rm = TRUE))
summarise(sig = median(value, na.rm = TRUE)) %>%
filter(!is.na(sig))

if (ifplot) {
p_all <- x3p_df %>%
Expand Down

0 comments on commit 6933476

Please sign in to comment.