minnz: Non-zero minimum

View source: R/minnz.R

minnzR Documentation

Non-zero minimum

Description

Helper function to calculate the smallest value of the vector except for 0 (non-zero minimum).

Usage

minnz(V)

Arguments

V

A vector

Details

This is a helper function to calculate the non-zero minimum of a vector. The result is the smallest value of the vector, but cannot be zero.

Value

The function returns the non-zero minimum

Author(s)

Didier Ruedin


agrmt documentation built on Jan. 5, 2024, 3:01 a.m.