|
|
|||
|
|
| Mathematica Import/Export Format |
| "Elements" | list of elements and options available in this file | |
| "Rules" | full list of rules for each element and option | |
| "Options" | list of rules for options, properties and settings |
| "Data" | two-dimensional array, representing the rows and columns | |
| "Grid" | table data as a Grid object |
| Alignment | None | how data is aligned within table columns | |
| CharacterEncoding | "UTF8" | raw character encoding used in the file |
| CharacterEncoding | "ASCII" | raw character encoding used in the file |
| "TextDelimiters" | Automatic | string or list of strings used to delimit non-numeric fields |
| "CurrencyTokens" | {{"$", " | currency units to be skipped when importing numerical values | |
| "DateStringFormat" | None | date format, given as a DateString specification | |
| "FieldSeparators" | {" ","\t"} | string tokens taken to separate columns | |
| "IgnoreEmptyLines" | False | whether to ignore empty lines | |
| "LineSeparators" | {"\r\n","\n","\r"} | string tokens taken to separate rows | |
| "Numeric" | True | whether to import data fields as numbers if possible | |
| "NumberPoint" | "." | decimal point string | |
| "NumberSigns" | {"-","+"} | strings to use for signs of negative and positive numbers | |
| "RepeatedSeparators" | True | whether to parse a sequence of field separators as a single separator | |
| "HeaderLines" | 0 | number of lines to skip at the beginning of the file |
| "FieldSeparators" | "\t" | string token used to separate columns | |
| "TableHeadings" | None | headings for table columns and rows |
| None | no labels | |
| Automatic | gives successive integer labels for columns and rows | |
| {"col1","col2",...} | list of column labels | |
| {rhead,chead} | specifies separate labels for the rows and columns |
Export an array of random numbers as a table:
Export a table formatted as Grid:
Import the generated file:
Import a tabular data file that uses vertical bars as field separators:
Create a UTF-8 encoded text file that contains currency tokens:
When importing this file, currency tokens are automatically skipped:
Mathematica automatically converts expressions to a list of lists when exporting to the Table format:
|
| © 2013 Wolfram Research, Inc. |