Learn R Programming

upsetjs (version 1.11.1)

setAttributes: set the attributes

Description

set the attributes

Usage

setAttributes(upsetjs, attrs = list())

Value

the object given as first argument

Arguments

upsetjs

an object of class upsetjs or upsetjs_proxy

attrs

the attributes to set

Examples

Run this code
upsetjs() %>%
  fromList(list(a = c(1, 2, 3), b = c(2, 3))) %>%
  setAttributes(list(
    attr = runif(3),
    cat = as.factor(sample(c("male", "female"), 3, replace = TRUE))
  ))

Run the code above in your browser using DataLab