all_pos_ints function

Check whether all arguments are strictly positive natural numbers

Check whether all arguments are strictly positive natural numbers

all_pos_ints tells whether all the elements in a vector are strictly positive natural numbers.

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-04-07

Useful links