DataFrame/convert - Maple Programming Help

Online Help

All Products    Maple    MapleSim


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

DataFrame/convert

conversions to and from DataFrame

 

Calling Sequence

Parameters

Description

Examples

Compatibility

Calling Sequence

convert( expr, DataFrame )

convert( df, typ )

convert( df, list, nested )

Parameters

expr

-

a Matrix or two-dimensional Array

df

-

DataFrame

Description

• 

The convert command can convert certain types of expressions expr to a DataFrame, and can convert a DataFrame df to certain other types typ.

• 

The convert( expr, DataFrame ) form of the command converts an expression expr, which must be a Matrix, or two-dimensional Array, to a DataFrame object.

• 

A DataFrame df can be converted to a set, Array, Vector or Matrix, nested list of lists, or table.

• 

To convert a DataFrame df to a nested list of lists, use the form convert( df, 'list', 'nested' ).

Examples

dfconvert1|2|3,4|5|6,DataFrame

df12311232456

(1)

convertdf,list,nested

1,4,2,5,3,6

(2)

convertdf,table

table1,1=1,2,1=4,2,3=6,2,2=5,1,2=2,1,3=3

(3)

convertdf,Matrix

123456

(4)

Compatibility

• 

The DataFrame/convert command was introduced in Maple 2016.

• 

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

See Also

Array

convert

convert/list

DataSeries

list

Matrix

set

table

type

type/list

Vector