Learn R Programming

do (version 2.0.0.1)

NA.whole.sums: Sum of missing value in the whole dataframe

Description

NA is treated as missing value.

Usage

NA.whole.sums(data)

Value

sum of missing value in the whole dataframe

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.whole.sums(df)

Run the code above in your browser using DataLab