with_attributes

0th

Percentile

Add attributes to an object.

Add attributes to an object.

Usage
with_attributes(.x, ..., .attrs = list())
Arguments
.x
An object to decorate with attributes.
..., .attrs
A list of named attributes.
Aliases
  • with_attributes
Examples
with_attributes(letters, class = "my_chr", names = 1:26)

attrs <- list(class = "my_chr", names = 1:26)
with_attributes(letters, .attrs = attrs)
Documentation reproduced from package rlang, version 0.0.0.9000, License: GPL-3

Community examples

Looks like there are no examples yet.