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

Online Help

All Products    Maple    MapleSim


DIF (.dif) File Format

Data Interchange Format

 

Description

Examples

Compatibility

Description

• 

DIF (Data Interchange Format) is a text-based file format for spreadsheet and tabular data. It is now primarily used for data exchange between spreadsheet programs.

• 

The general-purpose commands Import and Export also support this format.

• 

The default output from Import for this format is a DataFrame. To produce a Matrix, use Import(...,output=Matrix).

Examples

Import data from an DIF spreadsheet on historical Maple release dates.

Importexample/timeline.dif,base=datadir

Import the same data as a Matrix.

Importexample/timeline.dif,base=datadir,output=Matrix

Export a random matrix to a DIF spreadsheet in the home directory of the current user.

MLinearAlgebra:-RandomMatrix100,2:

Exportexample.dif,M,base=homedir

2482

(1)

Compatibility

• 

With Maple 2016, the Import command applied to DIF files now produces DataFrame objects by default.

See Also

ExportMatrix

Formats

ImportMatrix