Export Data

When you are exporting to most file types, typically you only need to specify the data set, file name and file type and the data is exported into a new data file using default settings. You can specify your own settings on the Options page of the Export Data dialog.

All formats that can be imported from can be exported to with the exception of Sigma plot (*.jnb) files. ASCII files can be read by most applications.

Formatted ASCII export is available to the extent that fixed-width, non-delimited columns may be output by specifying a null, or empty, delimiter with the ASCII export option.

To export a data sheet

Choose File __image\arrow5.gif Export Data. Specify a data set and a file name for the exported data, then choose OK. The dialog shown below appears.

Data page

In the Export Data dialog, the Data page has an upper section that allows you to navigate, using the standard Explorer interface, to a particular directory and file to be exported. If the file already exists you are warned and have an opportunity to overwrite it or cancel the export.

__image\export1.gif

In the Export Data dialog, the Data page has the following options:

Data Set Name

Data Set

Specify the name of the data set containing the columns and rows to be exported.

File

File Name

Specify the file name, and optionally the path of the file containing data to import.

File Format

A character string specifying the name of the file to export

Filter Page

In the Export Data dialog, the Filter page allows you to subset the data you export. By specifying a query, or filter, you gain additional functionality, such as saving a random sampling of the data. Use the examples and explanation of the filter syntax described below to create your statement. A blank filter is the default and results in all data being imported.

__image\export2.gif

In the Export Data dialog, the Filter page has the following options:

Select Columns

Keep Columns

A character vector of variable names, or numeric vector of column numbers, to be imported from the data file. Only one of keep and drop can be specified.

Drop Columns

A character vector of variable names, or numeric vector of column numbers, that are not to be imported from data file. Only one of keep and drop can be specified.

Select Rows

Filter Rows

A character string containing a logical expression for selecting the rows to be included in the return value.

Format Page

__image\export3.gif

In the Export Data dialog, the Format page has the following options:

Export Names

Export Column Names

A logical flag, if TRUE the column names are also exported.

Export Row Names

A logical flag, if TRUE the row names are also exported.

Factor Columns

Quote Character Strings

A logical flag, if TRUE, quotes are placed around character strings.

Text Files

Column Delimiter

A character string specifying the character to use as a delimiter in an ASCII input file.

Format String

Specify the data types of the imported columns.