Description Usage Arguments Examples
A utility function that tests whether an object has been defined by the given name with the given value, and with specified possible classes in the specified environment.
1 2 | is_defined_with_value(name, value, obj_classes = NULL,
envir = .GlobalEnv)
|
name |
the name of the object to search for |
value |
the value of object |
obj_classes |
the allowed class(es) of the object. If |
envir |
the environment to search in; defaults to global |
1 2 3 | x <- 42
is_defined_with_value("x", 42) #TRUE
is_defined_with_value("x", 42, c("numeric", "integer")) #TRUE
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.