name: Add a name attribute to an element (most often, an R...

View source: R/mathml.R

nameR Documentation

Add a name attribute to an element (most often, an R function)

Description

Add a name attribute to an element (most often, an R function)

Usage

name(x, name)

Arguments

x

an R object, e.g., an R function

name

the name of the object/function

Value

The object with the name attribute

Examples

f <- function(x) {sin(x)}
mathjax(call("integrate", name(f, "sin"), 0L, 2L*pi))


mathml documentation built on June 8, 2025, 11:12 a.m.