Learn R Programming

agrmt (version 1.42.12)

minnz: Non-zero minimum

Description

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

Usage

minnz(V)

Value

The function returns the non-zero minimum

Arguments

V

A vector

Author

Didier Ruedin

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.