I have a data frame with some columns with missing values. Is there a way (using dplyr) to efficiently calculate the percentage of each column that is missing i.e. NA. Sought of like a colSum equivalent. So I dont have to calculate each column percentage missing individually ?
colMeans(is.na(x))
(base R rather thandplyr
) might work. – Ben Bolkerdplyr
.Calculate using dplyr
. Am I missing something? – akrun