Learn R Programming

purrr (version 0.3.4)

get-attr: Infix attribute accessor

Description

purrr:::lifecycle("soft-deprecated")

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

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

Run the code above in your browser using DataLab