DIF (.dif) File Format
Data Interchange Format
Description
Examples
Compatibility
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).
Import data from an DIF spreadsheet on historical Maple release dates.
Import⁡example/timeline.dif,base=datadir
YearRelease11990Maple V21992Maple V R231994Maple V R341996Maple V R451997Maple V R561999Maple 672001Maple 782002Maple 892003Maple 9102004Maple 9.5⋮⋮⋮26 x 2 DataFrame
Import the same data as a Matrix.
Import⁡example/timeline.dif,base=datadir,output=Matrix
YearRelease1990Maple V1992Maple V R21994Maple V R31996Maple V R41997Maple V R51999Maple 62001Maple 72002Maple 82003Maple 9⋮⋮27 × 2 Array
Export a random matrix to a DIF spreadsheet in the home directory of the current user.
M≔LinearAlgebra:-RandomMatrix⁡100,2:
Export⁡example.dif,M,base=homedir
2482
With Maple 2016, the Import command applied to DIF files now produces DataFrame objects by default.
See Also
ExportMatrix
Formats
ImportMatrix
Download Help Document
What kind of issue would you like to report? (Optional)