Skip to content

Commit

Permalink
Can't use NULL for if_else false anymore, use NA
Browse files Browse the repository at this point in the history
  • Loading branch information
mine-cetinkaya-rundel committed Feb 21, 2023
1 parent 41c98cd commit dadd2d2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ country_data <- coronavirus %>%
mutate(
days_elapsed = as.numeric(date - min(date)),
end_date = if_else(date == max(date), TRUE, FALSE),
end_label = if_else(end_date, country, NULL)
end_label = if_else(end_date, country, NA)
) %>%
# ungroup
ungroup()
Expand Down

0 comments on commit dadd2d2

Please sign in to comment.