Learn R Programming

agrmt (version 1.35)

minnz: 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

Value

  • The function returns the non-zero minimum

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.