lazyIs: Get object class

Description Usage Arguments Value Author(s) See Also Examples

Description

Get object class

Usage

1
lazyIs(objName, class2 = NULL, removeCharacter = TRUE, lazyDir = NULL)

Arguments

objName

A character string indicating the object name

class2

An optional character string of the class to test against

removeCharacter

Logical. There is an artifact tag, class:character for any non-character object. This will be removed automatically in the return, unless this is FALSE

lazyDir

Character string of directory to be used for the lazy databases.

Value

A character vector equivalent to the an is(objName) command

Author(s)

Eliot McIntire

See Also

lazyLs, lazyLoad2

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
lazyDir(file.path(tempdir(), "lazyDir"), create=TRUE)
a <- rnorm(10)
lazySave(a)
lazyIs("a", "numeric")
lazyIs("a") # shows all
lazyRm("a")

## Not run: 
lazyIs("b") # error, does not exist

## End(Not run)

unlink(file.path(tempdir(), "lazyDir"), recursive=TRUE)

PredictiveEcology/lazyR documentation built on May 8, 2019, 3:10 p.m.