Skip to content

Commit

Permalink
remove unnecessary na.rm
Browse files Browse the repository at this point in the history
  • Loading branch information
RossanaTat committed Sep 26, 2024
1 parent 03f4f21 commit 5e9ac95
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions R/joyn-merge.R
Original file line number Diff line number Diff line change
Expand Up @@ -545,19 +545,9 @@ joyn <- function(x,
type_element <- rlang::env_get(.joynenv,
"joyn_msgs")$type

warn_count <- fsum(type_element == "warn",
na.rm = TRUE)

notes_count <- fsum(type_element %in% c("info", "note"),
na.rm = TRUE)

# notes_count <- sum(
# .joynenv$joyn_msgs$type %in% c("info", "note")
# )
#
# warn_count <- sum(
# .joynenv$joyn_msgs$type == "warn"
# )
warn_count <- fsum(type_element == "warn")

notes_count <- fsum(type_element %in% c("info", "note"))


warning_type <- "warn"
Expand Down

0 comments on commit 5e9ac95

Please sign in to comment.