Count the number of null values in a dataframe

Hi @jaiswal78 , remember put a reproducible example of data for better help you all the community.

Try with this:
Im make a toy data year21_22

year21_22 <- data.frame(A= c(1,2,NA,4,7),
                        B=c('amarillo',NA, 'rojo', NA, NA),


# NA in each column
# A B D 
# 1 3 5 

# For filter all rows with complete cases

# A        B   D
# 1 amarillo 1