Download S-PLUS 7 Enterprise Developer User's Guide

Transcript
Chapter 4 Exploring and Manipulating Large Data Sets
information about using the Import Data dialog box, in Windows,
click Help 䉴 Available Help 䉴 S-PLUS Help, and then see the topic
Importing Data Files.
Note
From the command line, import the data using the importData function. For more information
on importing data from the command line, see the section Importing the Data on page 107.
S-PLUS 7 includes Census and Stock big data examples. The
example files are installed in the samples directory in your S-PLUS
program directory.
In the following section, import the census example data.
To import the Big Data census example data set using the S-PLUS GUI
in Microsoft Windows
1.
From the File 䉴 Import Data menu, open the Import from
File dialog box.
2. Under File name, click Browse, and in the Select file to
import dialog box, browse to the census directory, by default
located in your installation directory at
/samples/bigdata/census.
3. Select census.csv.
4. In File format, select ASCII file - comma delimited (csv).
5. Select the Import as Big Data check box.
6. In the Data set text box, type P8.bd.
7.
Click the Options tab.
8. Clear the Strings as factors check box.
Note
When you import data, you have the option to set the flag stringsAsFactors to T or F (the
default is T). S-PLUS imposes a limit of 500 levels for bdFactors.
9. To preview the data, click the Data Specs tab, and then click
Update Preview.
88