exattr | R Documentation |
Get the exact attributes of an object
exattr(x, which)
x %attr% which
x |
an object whose attributes are to be accessed. |
which |
a non-empty character string specifying which attribute is to be accessed. |
See base::attr
foo <- struct(list(), "foo", aa = TRUE)
attr(foo, "a") # TRUE : partial match successful
exattr(foo, "a") # NULL : partial match failed
exattr(foo, "aa") # TRUE : exact match
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.