Description Usage Arguments Value Examples
Check whether a ref
points to a NULL
object or an object
that no longer exists.
1 | is.nullref(x)
|
x |
object of class |
TRUE
if x
is not a reference or points to an object that does not exist; otherwise FALSE
.
1 2 3 4 5 6 7 8 | # Create a vectors of random numbers and a reference
x <- rnorm(10)
ref_to_x <- ref(x)
# Delete 'x' and check if NULL
is.nullref(ref_to_x) # FALSE
rm(x)
is.nullref(ref_to_x) # TRUE
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.