Answers for "how to filter in R whitout lossing NA values"

0

how to filter in R whitout lossing NA values

a <- data.frame(col = c("hello", NA, "str"))
a %>% filter((col != "str") %>% replace_na(TRUE))
Posted by: Guest on September-08-2021

Browse Popular Code Answers by Language