Learn R Programming

CVXR (version 1.0-14)

name: Variable, Parameter, or Expression Name

Description

The string representation of a variable, parameter, or expression.

Usage

name(x)

Value

For Variable or Parameter objects, the value in the name slot. For Expression objects, a string indicating the nested atoms and their respective arguments.

Arguments

x

A Variable, Parameter, or Expression object.

Examples

Run this code
x <- Variable()
y <- Variable(3, name = "yVar")

name(x)
name(y)

Run the code above in your browser using DataLab