isInteger: Checks whether the given object is an integer number

View source: R/watanabe-misc.R

isIntegerR Documentation

Checks whether the given object is an integer number

Description

Checks whether the given object is an integer number. This is differnet behavior from is.integer, which checks whether the variable type is integer. This often will not be useful.

Usage

isInteger(x)

Arguments

x

A vector to test for integerness

Value

A logical vector the same length as x in which the ith element is TRUE if the ith element of x is an integer.


awatanabe/appr documentation built on Sept. 26, 2022, 8:04 a.m.