NA.row.sums {do}R Documentation

Sum of missing value by row

Description

NA is treated as missing value.

Usage

NA.row.sums(data)

Arguments

data

must be dataframe or matrix

Value

sum of missing value by row

Examples

df = data.frame(x=rep(c(1,NA,2,NA,6,NA),10),
                 y=rep(c(1,NA,2),20))
NA.row.sums(df)

[Package do version 2.0.0.0 Index]