isCountsOrZeros checks if vector contains only positive integers or zeros.

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.