R/echoice2.R
grapes-.-grapes.Rd
Get the attribute of an object
obj %.% attrname
The object to get the attribute from.
The name of the attribute to get.
The attribute of the object.
obj <- list(a = 1, b = 2) attributes(obj)$test="hello" `%.%`(obj, "test") #> [1] "hello"