attr2 {xfun} | R Documentation |
Obtain an attribute of an object without partial matching
Description
An abbreviation of base::attr
(exact = TRUE)
.
Usage
attr2(...)
attr(...)
Arguments
... |
Passed to |
Note
xfun::attr()
is deprecated. Please use xfun::attr2()
instead.
Examples
z = structure(list(a = 1), foo = 2)
base::attr(z, "f") # 2
xfun::attr2(z, "f") # NULL
xfun::attr2(z, "foo") # 2
[Package xfun version 0.52 Index]