This question already has an answer here:
I have a dataframe with 4 columns Type, Color, Diameter, Mass and want to create a new dataframe with 4 column titled Missing_Type, Missing_Color, etc with the count of NAs for the respective column.
Code is below but only gives me the last column and sum...
Missing_Values_Info <- MnM_Data %>% summarise(Type_Missing = sum(is.na(MnM_Data$type))) %>% summarise(Color_Missing = sum(is.na(MnM_Data$color)))