Learn R Programming

gdata (version 2.18.0.1)

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

Description

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

Usage

is.what(object, verbose=FALSE)

Value

A character vector containing positive tests, or when verbose

is TRUE, a data frame showing all test results.

Arguments

object

any R object.

verbose

whether negative tests should be included in output.

Author

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

See Also

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

Examples

Run this code
is.what(pi)
is.what(NA, verbose=TRUE)
is.what(lm(1~1))
is.what(is.what)

Run the code above in your browser using DataLab