Learn R Programming

radiant.data (version 0.8.1)

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
# NOT RUN {
foo <- data.frame(price = 1:5) %>% set_attr("desc", "price set in experiment ...")

# }

Run the code above in your browser using DataLab