Learn R Programming

sstvars (version 1.1.6)

all_pos_ints: Check whether all arguments are positive integers

Description

all_pos_ints checks whether all the elements in a vector are positive integers.

Usage

all_pos_ints(x)

Value

Returns TRUE or FALSE accordingly.

Arguments

x

a vector containing the elements to be tested.