is_positive_integer: Check if value is a positive integer or integer-like

View source: R/predicates.R

is_positive_integerR Documentation

Check if value is a positive integer or integer-like

Description

this function checks if the input is a positive integer scalar (integer-like value – i.e., both 1L and 1.0 pass this check)

Usage

is_positive_integer(x, n)

Arguments

x

is the input

n

is the number of inputs


jtipton25/dasc2594 documentation built on Oct. 7, 2022, 3:46 p.m.