Skip to content

Commit e1813d9

Browse files
authored
Merge pull request #3 from lionel-/dplyr-1.1.0
Only map `na_if()` on compatible vectors
2 parents 16983e0 + 802310a commit e1813d9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

R/getData.R

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ getData <- function(schema = NULL, input = NULL){
5656
mutate(ind = if_else(ind %in% targetRows, min(targetRows), ind)) %>%
5757
group_by(ind) %>%
5858
summarise(across(everything(), eval_tidy(temp$by$char))) %>%
59-
mutate(across(where(is.character), function(x) na_if(x, "")))
59+
mutate(across(where(is.character), ~na_if(x = ., y = "")))
6060

6161
outNum <- suppressWarnings(outNum %>%
6262
mutate(ind = if_else(ind %in% targetRows, min(targetRows), ind)) %>%
@@ -102,3 +102,5 @@ getData <- function(schema = NULL, input = NULL){
102102

103103
return(out)
104104
}
105+
106+
utils::globalVariables("where")

0 commit comments

Comments
 (0)