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

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

YearRelease11990Maple V21992Maple V R231994Maple V R341996Maple V R451997Maple V R561999Maple 672001Maple 782002Maple 892003Maple 9102004Maple 9.526 x 2 DataFrame

(1)

Import the same data as a Matrix.

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

YearRelease1990Maple V1992Maple V R21994Maple V R31996Maple V R41997Maple V R51999Maple 62001Maple 72002Maple 82003Maple 927 × 2 Array

(2)

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

(3)

Compatibility

• 

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

See Also

ExportMatrix

Formats

ImportMatrix