countEmptyCells: count the number of empty cells in each row in order to check...

Usage Arguments Details Examples

View source: R/countEmptyCells.R

Usage

1

Arguments

x

data.frame or matrix

...

further argumente passed to setEmptyCellsValue

Details

count the number of empty cells in each row in order to check for large missing values in a row.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
xe <- matrix(data = NA, nrow = 4, ncol = 3)
xe[1, ] <- 1
xe[2, 2:3] <- 2
xe[3,   3] <- 3
print(xe)
countEmptyCells(xe)

xe <- matrix(data = -99, nrow = 4, ncol = 3)
xe[1, ] <- 1
xe[2, 2:3] <- 2
xe[3,   3] <- 3
print(xe)
countEmptyCells(xe, ef = -99)

mathphysmx/cleanTable documentation built on May 29, 2019, 2:51 p.m.