Learn R Programming

healthcareai (version 1.2.4)

countPercentEmpty: DEPRECATED. Calculates percentage of each column in df that is NULL (NA)

Description

Returns a vector with percentage of each column that is NULL in the original data frame

Usage

countPercentEmpty(df)

Arguments

df

A data frame

Value

A vector that contains the percentage of NULL in each column

References

http://healthcareai-r.readthedocs.io

See Also

healthcareai

Examples

Run this code
# 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