Learn R Programming

BayesMRA (version 1.0.0)

is_integer: Check if value is an integer or integer-like

Description

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

Usage

is_integer(x, n)

Arguments

x

is the input

n

is the number of inputs