Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

get-attr

Infix attribute accessor


Description

Soft-deprecated lifecycle

Please use the %@% operator exported in rlang. It has an interface more consistent with @: uses NSE, supports S4 fields, and has an assignment variant.

Usage

x %@% name

Arguments

x

Object

name

Attribute name

Examples

factor(1:3) %@% "levels"
mtcars %@% "class"

purrr

Functional Programming Tools

v0.3.4
GPL-3 | file LICENSE
Authors
Lionel Henry [aut, cre], Hadley Wickham [aut], RStudio [cph, fnd]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.