Exercise

RevoScaleR options

Practice extracting and modifying some of the options within RevoScaleR

Instructions

100 XP

Use the function rxOptions() to view and set a options for the RevoScaleR package.

To view the options available to us (and their values), we can simply call rxOptions() with no arguments. The output of this function is a list, and we can operate on this list just like any other.

Go ahead and extract the names of possible options. Remember that because the output is a list, you can extract the possible values by extracting the names of the elements.

If we want to view the values of specific options, then we can use the rxGetOption() function.

The syntax is:
rxGetOption(opt)

opt - The name of the option value you would like to view.

Go ahead and use rxGetOption() to view the directory where the sample data are stored. If you can't remember the specific name of the option, view the values you retrieved in the first step.

If we want to set the values of specific options, then we use the rxOptions() argument in a similar way to how we set options in base R using the options() function or how we set graphical parameters using the par() function: We specify the name of the option to set, and assign its value by calling it:

rxOptions(name = value)

For example, we could set the reportProgress option to \(0\) in order to suppress progress reporting for the functions that have to read in datasets.

Go ahead and view the value of the reportProgress option, and then change it to be equal to \(0\).