exattr {fuj} | R Documentation |
Exact attributes
Description
Get the exact attributes of an object
Usage
exattr(x, which)
x %attr% which
Arguments
x |
an object whose attributes are to be accessed. |
which |
a non-empty character string specifying which attribute is to be accessed. |
Value
See base::attr
Examples
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
[Package fuj version 0.2.1 Index]