DataSeries/Labels - Maple Programming Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Statistics and Data Analysis : DataFrames and DataSeries : DataSeries Commands : DataSeries/Labels

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

dsDataSeries5,6,8,labels=a,b,c

dsa5b6c8

(1)

Labelsds

a,b,c

(2)

Labelsds,2

b

(3)

The statement below does not modify ds.

ds2SubsLabelds,1,z

ds2z5b6c8

(4)

Labelsds

a,b,c

(5)

Labelsds2

z,b,c

(6)

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

dsSubsLabelds,1,y

dsa5b6y8

(7)

Labelsds

a,b,y

(8)

SubsLabelds,b,x

a5x6y8

(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