Learn R Programming

quickcode (version 1.0.6)

not.environment: Not an environment

Description

Check if entry is not an environment object

Usage

not.environment(x)

Value

a boolean value to indicate if entry is an environment

Arguments

x

vector entry

Examples

Run this code
test.env <- new.env()
test.notenv <- list(t=1)
not.environment(test.env) # FALSE
not.environment(test.notenv) # TRUE
if(not.environment(test.notenv)) message("yes") # yes

Run the code above in your browser using DataLab