powered by
Remove zeros and get range and number of NAs
range_nanozero(x)
an integer vector without zeros and with an attribute range_na with three elements
range_na
min integer
max integer
number of NAs
an integer vector
range_na and range_sortna
range_sortna
range_nanozero(c(0L,1L,2L,NA))
Run the code above in your browser using DataLab