get_grid: Get feature grid

View source: R/get_grid.R

get_gridR Documentation

Get feature grid

Description

Get the grid values for features based on the observed values in the data.

Usage

get_grid(var, data)

Arguments

var

Character string or vector giving the names of the features.

data

Data frame containing the original training data.

Value

Tidy data frame (i.e., a "tibble" object). The columns contain the grid values for features var based on the observed values in data.

Examples

## 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)

henckr/maidrr documentation built on July 27, 2023, 3:17 p.m.