Learn R Programming

landsepi (version 1.5.1)

is.positive: is.positive

Description

Tests if a number or vector is positive (including 0)

Usage

is.positive(x)

Value

a logical of the same size as x

Arguments

x

a number or vector or matrix

Examples

Run this code
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