powered by
Returns a vector with percentage of each column that is NULL in the original data frame
countPercentEmpty(df)
A data frame
A vector that contains the percentage of NULL in each column
http://healthcareai-r.readthedocs.io
healthcareai
# NOT RUN { df = data.frame(a=c(1,2,NA,NA,3), b=c(NA,NA,NA,NA,NA), c=c(NA,NA,'F','M',NA)) colList = countPercentEmpty(df) colList # }
Run the code above in your browser using DataLab