is.int: Checks which elements of a vector are integers.

Description Usage Arguments Value Author(s)

Description

This differs from is.integer which only checks the class of the entire vector.

Usage

1
is.int(x)

Arguments

x

a vector. usually this will be a numeric vector, but can also be a character

Value

a logical vector, same length as x, with TRUE if each element is an integer

Author(s)

Mark Cowley, 2009-11-30


drmjc/mjcbase documentation built on May 15, 2019, 2:27 p.m.