Learn R Programming

bit (version 4.5.0)

range_nanozero: Remove zeros and get range and number of NAs

Description

Remove zeros and get range and number of NAs

Usage

range_nanozero(x)

Value

an integer vector without zeros and with an attribute range_na with three elements

1

min integer

2

max integer

3

number of NAs

Arguments

x

an integer vector

See Also

range_na and range_sortna

Examples

Run this code
range_nanozero(c(0L,1L,2L,NA))

Run the code above in your browser using DataLab