Labels - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

DataSeries/Labels

obtain labels of a DataSeries

DataSeries/SubsLabel

create a DataSeries with a different label

 

Calling Sequence

Parameters

Description

Examples

Compatibility

Calling Sequence

Labels(DS)

Labels(DS, i)

SubsLabel(DS, i, label)

Parameters

DS

-

a DataSeries object

i

-

a nonzero integer or valid label

label

-

a new label

Description

• 

The Labels command returns the list of labels for a DataSeries object, or a single label. A single label is specified by its position.

• 

The SubsLabel command creates a DataSeries object with a different label. Note: this does not modify the given DataSeries object DS - it just returns a new DataSeries object. See the Examples section below.

• 

If i is negative, it specifies the position counting from the end. For example, -2 specifies the label before last.

Examples

(1)

(2)

(3)

The statement below does not modify .

(4)

(5)

(6)

We can make the change apply to  by assigning the result to .

(7)

(8)

(9)

Compatibility

• 

The DataSeries/Labels and DataSeries/SubsLabel commands were introduced in Maple 2016.

• 

For more information on Maple 2016 changes, see Updates in Maple 2016.

See Also

DataFrame/Labels

DataSeries

DataSeries/Constructor

DataSeries/indexing

 


Download Help Document