expand.grid(...)
Function expand.grid is most often used in conjunction with predict to produce fitted values from a model at a regular grid of values of the dependent variables. When a data frame with the out.attrs attribute is passed to predict, it will apply these attribute to its result, producing an array.
grid <- list(height=seq(60,80,5),weight=seq(100,300,50), sex=c("Male","Female")) fit <- predict(fitted.model, expand.grid(grid))