get_grid | R Documentation |
Get the grid values for features based on the observed values in the data.
get_grid(var, data)
var |
Character string or vector giving the names of the features. |
data |
Data frame containing the original training data. |
Tidy data frame (i.e., a "tibble" object). The columns contain the grid
values for features var
based on the observed values in data
.
## Not run:
data('mtpl_be')
'ageph' %>% get_grid(data = mtpl_be)
'coverage' %>% get_grid(data = mtpl_be)
c('ageph', 'coverage') %>% get_grid(data = mtpl_be)
tidyr::expand_grid('ageph' %>% get_grid(data = mtpl_be),
'coverage' %>% get_grid(data = mtpl_be))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.