Learn R Programming

BayesMRA (version 1.0.0)

is_positive_integer: 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