DataSeries - Maple Programming Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Programming : Data Types : DataFrames and DataSeries : DataSeries/Constructor

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'='float'4

11.22.33.

(6)

DataSeries1,2,3,'labels'='a','b','c','datatype'='float'8

a1.b2.c3.

(7)

dsDataSeriestable'a'=1,'b'=2,'c'=3

dsa1c3b2

(8)

DataSeriesds,'datatype'='float'8

a1.c3.b2.

(9)

DataSeriesds,'labels'=X,Y,Z

X1Y3Z2

(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