Infix attribute accessor

x %@% name

Arguments

x

Object

name

Attribute name

Examples

factor(1:3) %@% "levels"
#> [1] "1" "2" "3"
mtcars %@% "class"
#> [1] "data.frame"