Session Ready
Exercise

Import and Explore Dow Jones Data

Use RevoScaleR functions to explore the dataset containing information about the Dow Jones Industrial daily average.

Instructions
100 XP

Some data for the Dow Jones Industrial Average are stored in a xdf file that is already located in the sampleDataDir directory that ships with Revolution R Enterprise. The name of this file is DJIAdaily.xdf.

First, start off by creating a variable that stores the path to this xdf file.

Once you have accurately created this variable, we are ready to actually explore the data. We might want to start by viewing some information about the dataset as a while. We can do this using the rxGetInfo() function

The syntax is: rxGetInfo(data, getVarInfo = FALSE, numRows = 0)

  • data - the data set that would like information on.
  • getVarInfo - whether to get information about the variables as well. This is FALSE by default.
  • numRows - the number of rows to extract from the dataset. This is \(0\) by default.

Go ahead and use rxGetInfo to get some information about the dataset, including information about the variables.