na_only_end_rows: Check 'NA' pattern in matrix

Description Usage Arguments Value Examples

Description

Check whether NA's exist only at the end of each row, that is, whether there are no values after the first NA in the row.

Usage

1

Arguments

x

Matrix.

Value

TRUE if there are only NA's at the end of each row or no NA at all; FALSE otherwise.

Examples

1
2
ShadowCAT:::na_only_end_rows(matrix(c(1:3, NA, NA, 1:5, 1:4, NA), ncol = 5, byrow = TRUE))
ShadowCAT:::na_only_end_rows(matrix(c(1:3, NA, NA, 1:2, NA, 4:5, 1:4, NA), ncol = 5, byrow = TRUE))

Karel-Kroeze/ShadowCAT documentation built on May 7, 2019, 12:28 p.m.