DIF (.dif) File Format - Maple Programming Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Programming : Input and Output : File Formats : Formats/DIF

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

(1)

Import the same data as a Matrix.

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

(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