Learn R Programming

do (version 2.0.0.1)

NA.col.prob: Proportion of missing value by column

Description

NA is treated as missing value.

Usage

NA.col.prob(data)

Value

proportion of missing value by column

Arguments

data

must be dataframe or matrix

Examples

Run this code
df = data.frame(x=rep(c(1,NA,2,NA,6,NA),10),
                 y=rep(c(1,NA,2),20))
NA.col.prob(df)

Run the code above in your browser using DataLab