PRODUCTS
Products Overview
Mathematica
Mathematica for Students
Mathematica Home Edition
Wolfram
CDF Player
(free download)
Computable Document Format (CDF)
web
Mathematica
grid
Mathematica
Wolfram
Workbench
Wolfram
SystemModeler
Wolfram
Finance Platform
Mathematica
Add-Ons
Wolfram|Alpha Products
SOLUTIONS
Solutions Overview
Engineering
Aerospace Engineering & Defense
Chemical Engineering
Control Systems
Electrical Engineering
Image Processing
Industrial Engineering
Materials Science
Mechanical Engineering
Operations Research
Optics
Petroleum Engineering
Biotechnology & Medicine
Bioinformatics
Medical Imaging
Finance, Statistics & Business Analysis
Actuarial Sciences
Data Analysis & Mining
Econometrics
Economics
Financial Engineering & Mathematics
Financial Risk Management
Statistics
Software Engineering & Content Delivery
Authoring & Publishing
Interface Development
Software Engineering
Web Development
Science
Astronomy
Biological Sciences
Chemistry
Environmental Sciences
Geosciences
Social & Behavioral Sciences
Design, Arts & Entertainment
Game Design, Special Effects & Generative Art
Education
STEM Education Initiative
Higher Education
Community & Technical College Education
Primary & Secondary Education
Students
Technology
Computable Document Format (CDF)
High-Performance & Parallel Computing (HPC)
See Also: Technology Guide
PURCHASE
Online Store
Other Ways to Buy
Volume & Site Licensing
Contact Sales
Software
Service
Upgrades
Training
Books
Merchandise
SUPPORT
Support Overview
Knowledge Base
Learning Center
Community & Forums
Training
Does My Site Have a License?
Wolfram User Portal
COMPANY
About Wolfram Research
News & Events
Wolfram Blog
Partnerships
Employment Opportunities
History of
Mathematica
Stephen Wolfram's Home Page
Contact Us
OUR SITES
All Sites
Wolfram|Alpha
Demonstrations Project
MathWorld
Integrator
Wolfram Functions Site
Mathematica Journal
Wolfram Media
Wolfram
Tones
Wolfram Science
Stephen Wolfram
DOCUMENTATION CENTER SEARCH
New to
Mathematica
?
Find your learning path
»
Mathematica
>
Data Manipulation
>
Importing and Exporting
>
XPORT (.stx, .xpt)
>
MATHEMATICA IMPORT/EXPORT FORMAT
"DBF"
"DIF"
"MAT"
"MPS"
"MTP"
"XLS"
See Also »
|
Importing & Exporting
Listing of All Formats
New in 6.0: Import & Export Formats
Numerical Data Formats
More About »
XPORT
(.stx, .xpt)
MIME type:
application/x-sas-xport
SAS XPORT transport format.
Legacy data exchange format.
Stores numerical datasets in a portable format.
Text format.
Developed in the late 1980s by SAS Institute.
Import
fully supports the XPORT format.
IMPORT
Import
imports an XPORT file, returning all datasets arranged as a table.
Import
returns a table, representing each dataset as a column.
XPORT data is represented in
Mathematica
by real or integer numbers, strings, Boolean values
True
and
False
, and
DateList
specifications.
Import
imports the specified element from an XPORT file.
Import
imports a subelement.
Import
imports multiple elements.
The import format can be specified with
Import
or
Import
.
See the reference pages for full general information on
Import
.
ImportString
supports the XPORT format.
ELEMENTS
General
Import
elements:
"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 representation elements:
"Data"
datasets arranged as a table
"LabeledData"
datasets given as a list of rules
Import
uses the
element by default.
Import
reads all datasets and returns them as a table.
Import
imports the entire file and returns an expression of the form
, where the
are the table headings.
Meta-information elements:
"Labels"
dataset names given as a list of strings
"Metadata"
information about each dataset, given as a list of strings
OPTIONS
Import
option:
"EmptyField"
""
how empty cells are represented in
Mathematica
SEE ALSO
"DBF"
"DIF"
"MAT"
"MPS"
"MTP"
"XLS"
MORE ABOUT
Importing & Exporting
Listing of All Formats
New in 6.0: Import & Export Formats
Numerical Data Formats
EXAMPLES
CLOSE ALL
Basic Examples
(1)
Import an XPT file from a website and return the labels of all datasets:
Get the first few entries for the
dataset:
Import two datasets and visualize them as a
ListPlot
:
Import an XPT file from a website and return the labels of all datasets:
In[1]:=
Out[1]=
In[2]:=
Out[2]=
Get the first few entries for the
dataset:
In[3]:=
Out[3]=
Import two datasets and visualize them as a
ListPlot
:
In[4]:=
In[5]:=
Out[5]=