all_pos_ints function

Check whether all arguments are positive integers

Check whether all arguments are positive integers

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

all_pos_ints(x)

Arguments

  • x: a vector containing the elements to be tested.

Returns

Returns TRUE or FALSE accordingly.

  • Maintainer: Savi Virolainen
  • License: GPL-3
  • Last published: 2025-02-27