I am working on a large dataset, with some rows with NAs and others with blanks:
df <- data.frame(ID = c(1:7),
An elegant solution with dplyr would be:
df %>% # recode empty strings "" by NAs na_if("") %>% # remove NAs na.omit