I want to sort through a data set, identify all people who are missing data in my Last_name variable, and create a new set of data called "noncompleters" that stores all of these people. I'm essentially looking for a command that is the inverse of na.omit or complete_cases, so that I can quickly pull all of these people out my my current data frame and re-assign them to a separate one. Any suggestions?
my code below has not been working, and stores "0 observations"; can't figure out what is wrong. I've tried this three different ways:
noncompleters=sonadata%>%filter(is.na(Last_name)) noncompleters=sonadata%>%filter(complete.cases(Last_name)==FALSE) noncompleters=sonadata%>%filter(!complete.cases(Last_name))