Expand Grid Dialog Function

DESCRIPTION:

This function is used by the Expand Grid dialog.

USAGE:

menuExpandGrid(data, variables=NULL, method="Data Values", n=10, 
     save.name=NULL) 

REQUIRED ARGUMENTS:

data
data set containing variables of interest.
variables
variables upon which to base grid.

OPTIONAL ARGUMENTS:

method
character string "Data Values" or "Data Ranges" indicating whether the grid should use all unique values of the variables or a certain number of values spanning the ranges of the variables.
n
number of values for each variable when method="Data Ranges".
save.name
name for new data set.

VALUE:

data set with one column for each variable. Each row will contain one combination of the variable values such that all possible combinations of the variable values are present. The resulting columns represent a full grid of values useful for obtaining predictions over a grid.

SEE ALSO: