I'm trying to cleanse a data set and there are null values stored under dbl and chr columns. I wrote the following code to summarize the number of null values by column but I notice it only return a value for the column that is numeric and ignored the columns with strings. The screenshot is showing that the 'agent' and 'company' also have null values but it looks like they are stored as strings?
Is there a way to find out the number of nulls under each column and filter to those only that are non-zeros?
colSums(is.na(df)) %>% data.frame(.) %>% filter(. !=0)
Returned Babies: 4
Thanks for the help.