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

Online Help

All Products    Maple    MapleSim


DataSeries

create a DataSeries from data

 

Calling Sequence

Parameters

Options

Description

Examples

Compatibility

Calling Sequence

DataSeries( L, opts )

Parameters

L

-

: {list,Array,Vector,DataSeries,table} : input data

Options

• 

labels : {list,Array,Vector}, labels to use for data items in L

• 

datatype : type, the data type for the DataSeries

Description

• 

The DataSeries constructor produces, from the input data L, a DataSeries data container with the data in L. If the labels = option is specified, then the data in the resulting DataSeries may be retrieved by using the labels specified, as well as by position, as for an Array or Vector. The input data (L) may be a list, a Vector, an Array, a table, or another DataSeries.

• 

If the input L is a table, then the indices of L are used as the labels, while the entries of L are used as the data items.  Note that, in this case, there is no pre-determined order for the data.

• 

The input L may be an existing DataSeries, in which case you can use the constructor to produce a new DataSeries with a different (compatible) data type, or to re-label the data items.

Examples

DataSeries1,2,3

112233

(1)

DataSeriesVector1,2,3

112233

(2)

DataSeriesArray1,2,3

112233

(3)

DataSeries1,2,3,labels=a,b,c

a1b2c3

(4)

DataSeries1,2,3,labels=a,b,c

a1b2c3

(5)

DataSeries1,2,3,datatype=float4

11.22.33.

(6)

DataSeries1,2,3,labels=a,b,c,datatype=float8

a1.b2.c3.

(7)

dsDataSeriestablea=1,b=2,c=3

dsa1b2c3

(8)

DataSeriesds,datatype=float8

a1.b2.c3.

(9)

DataSeriesds,labels=X,Y,Z

X1Y2Z3

(10)

Compatibility

• 

The DataSeries command was introduced in Maple 2016.

• 

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

See Also

DataFrame

DataSeries