Run Multiple is.* Tests on a Given Object

Run multiple is.* tests on a given object: is.na, is.numeric, and many others.

Keywords
classes, utilities, programming, NA, error
Usage
is.what(object, verbose=FALSE)
Arguments
object

any R object.

verbose

whether negative tests should be included in output.

Value

A character vector containing positive tests, or when verbose is TRUE, a data frame showing all test results.

Note

The following procedure is used to look for valid tests:

  1. Find all objects named is.* in all loaded environments.

  2. Discard objects that are not functions.

  3. Include test result only if it is of class "logical", not an NA, and of length 1.

See Also

is.na and is.numeric are commonly used tests.

Aliases
  • is.what
Examples
is.what(pi)
is.what(NA, verbose=TRUE)
is.what(lm(1~1))
is.what(is.what)
Documentation reproduced from package gdata, version 2.18.0, License: GPL-2

Community examples

Looks like there are no examples yet.