powered by
Tests if a number or vector is positive (including 0)
is.positive(x)
a number or vector or matrix
a logical of the same size as x
# NOT RUN { is.positive(-5) is.positive(10) is.positive(2.5) is.positive(matrix(1:9, nrow=3)) # }
Run the code above in your browser using DataLab