Learn R Programming

mathml (version 1.2)

name: 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)

Value

The object with the name attribute

Arguments

x

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

name

the name of the object/function

Examples

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

Run the code above in your browser using DataLab