Learn R Programming

radiant.data (version 1.6.3)

set_attr: Alias used to add an attribute

Description

Alias used to add an attribute

Usage

set_attr(x, which, value)

Arguments

x

Object

which

Attribute name

value

Value to set

Examples

Run this code
foo <- data.frame(price = 1:5) %>% set_attr("description", "price set in experiment ...")

Run the code above in your browser using DataLab