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

Example output

gdata: read.xls support for 'XLS' (Excel 97-2004) files ENABLED.

gdata: read.xls support for 'XLSX' (Excel 2007+) files ENABLED.

Attaching package:gdataThe following object is masked frompackage:stats:

    nobs

The following object is masked frompackage:utils:

    object.size

The following object is masked frompackage:base:

    startsWith

[1] "is.atomic"  "is.double"  "is.finite"  "is.numeric" "is.vector" 
                    is
is.array             .
is.atomic            T
is.call              .
is.character         .
is.complex           .
is.data.frame        .
is.double            .
is.environment       .
is.expression        .
is.factor            .
is.finite            .
is.function          .
is.infinite          .
is.integer           .
is.language          .
is.leaf              .
is.levelsMap         .
is.list              .
is.listLevelsMap     .
is.logical           T
is.matrix            .
is.mts               .
is.na                T
is.na.data.frame     T
is.na.POSIXlt        T
is.name              .
is.nan               .
is.null              .
is.numeric           .
is.numeric_version   .
is.numeric.Date      .
is.numeric.difftime  .
is.numeric.POSIXt    .
is.object            .
is.object_sizes      .
is.ordered           .
is.package_version   .
is.pairlist          .
is.primitive         .
is.qr                .
is.raster            .
is.raw               .
is.recursive         .
is.relistable        .
is.stepfun           .
is.symbol            .
is.table             .
is.ts                .
is.tskernel          .
is.unsorted          .
is.vector            T
[1] "is.list"      "is.object"    "is.recursive"
[1] "is.function"  "is.recursive"

gdata documentation built on May 2, 2019, 5:49 p.m.