isCountsOrZeros {midasHLA} | R 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.

[Package midasHLA version 1.2.0 Index]