isCountsOrZeros: Check if vector contains only counts or zeros

View source: R/asserts.R

isCountsOrZerosR Documentation

Check if vector contains only counts or zeros

Description

isCountsOrZeros checks if vector contains only positive integers or zeros.

Usage

isCountsOrZeros(x, na.rm = TRUE)

Arguments

x

Numeric vector or object that can be unlist to numeric vector.

na.rm

Logical indicating if NA values should be accepted.

Value

Logical indicating if provided vector contains only positive integers or zeros.


Genentech/MiDAS documentation built on Feb. 5, 2024, 11:52 a.m.