is.what: Run Multiple is.* Tests on a Given Object

Description Usage Arguments Value Note Author(s) See Also Examples

View source: R/is.what.R

Description

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

Usage

1
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.

Author(s)

Arni Magnusson, inspired by demo(is.things).

See Also

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

Examples

1
2
3
4

gdata documentation built on May 2, 2019, 8:49 a.m.