Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR R

how to filter in R whitout lossing NA values

a <- data.frame(col = c("hello", NA, "str"))
a %>% filter((col != "str") %>% replace_na(TRUE))
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #filter #R #whitout #lossing #NA #values
ADD COMMENT
Topic
Name
7+7 =