Learn R Programming

fastStat (version 1.4)

list.NA: Return Na Count and Percentage

Description

Return Na count and percentage for each variable in a dataframe or matrix.

Usage

list.NA(x)

Arguments

x

a numeric vector, a dataframe or matix

Value

A dataframe contains NA variable names, NA count and percentage

Examples

Run this code
# NOT RUN {
 jh=data.frame(x=c(1,2,3,1),
     k=c(4,5,6,7),
     h=c('a','a',NA,'D'),
     f=c(1,2,NA,NA))
list.NA(jh)
# }

Run the code above in your browser using DataLab