rc_anyall: Matrix Row/Col Any/All

Description Usage Arguments Details

Description

Row/Column any/all values. Analogues of e.g. colSums() and rowSums().

Usage

1
2
3
4
5
6
7
col_anys(x, na.rm = FALSE)

row_anys(x, na.rm = FALSE)

col_alls(x, na.rm = FALSE)

row_alls(x, na.rm = FALSE)

Arguments

x

A numeric (integer or double) or logical matrix.

na.rm

Should NA values be removed?

Details

If na.rm=FALSE, then NA's are ignored. If, for example, we have a column of all NA values, col_anys() will return FALSE and col_all() will return TRUE.


wrathematics/mops documentation built on May 4, 2019, 10:52 a.m.