Get the minimum positive value

minpositive(x)

Arguments

x

A numeric vector or variable

Value

Returns the minimum positive value in an object

Examples

minpositive(c(-1,-2,3,5,6,7,8,9,10))
#> [1] 3