I am trying to filter out rows with NA values across multiple columns. A row should only be dropped if all columns of interest are NA.
The scenario is the same as in this question (but I don't have enough reputation to make a comment): filtering data frame based on NA on multiple columns
One of the solutions is to use:
library(dplyr)
df_non_na <- df %>% filter_at(vars(type,company),all_vars(!is.na(.)))
Since "filter_at" is being depreciated in dplyr, how can I use "filter" and "across" to achieve a similar outcome?