make a uniform, random, or user-specified grid over some columns of a data.frame, and combine it with a grid of points to integrate over.
makes a uniform, random, or user-specified grid over some columns of a data.frame and takes their Cartesian product with the other columns
makeDesign(data, vars, n, uniform = TRUE, points, int.points)
data |
a |
vars |
character vector the columns in data to create the grid for |
n |
two dimensional integer vector giving the resolution of the grid. the first element gives the grid on |
uniform |
logical, indicates whether a uniform grid is to be constructed. |
points |
a named list which gives specific points for |
int.points |
a integer vector giving indices of the points in |
a data.frame
with at most n
dimensions.
data = data.frame(w = seq(0, 1, length.out = 5), x = factor(letters[1:5]), y = ordered(1:5), z = 1:5, r = letters[1:5], stringsAsFactors = FALSE) makeDesign(data, "z", c(10, 5), TRUE)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.