blade_params | R Documentation |
blade_params()
takes a list of name-value pairs and sets up a grid comprising all possible combinations of these values. It also provides the optional ability to filter out certain combinations through specifying conditions.
blade_params(params, ...)
params |
A list of name-value pairs. The name will become the column name in the output. |
... |
Conditions to filter the grid. Optional. |
This function provides a wrapper around tidyr::expand_grid and then (optionally) filters it by passing on the given conditions to dplyr::filter().
A tibble with one column for each input in ...., optionally filtered by the conditions, and beginning with a column identifying each test case.
params <- list( a = seq(1:3), b = 2 ) blade_params(params, a > b)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.