Description Usage Arguments Author(s) Examples
This function selects rows from a dataframe of simulation results. For example using the default functional
which.max
the rows containing the maximum of column what
within values of group
are selected. The function adds column with name select_what
that specifies based on which columns a row was selected.
1 | select_results(sim_results, group, what, functional = which.max)
|
sim_results |
Simulation results from a previous simulation run |
group |
Grouping variables within unique values of which results should be selected |
what |
Variable based on which the selection is performed |
functional |
Function that returns a unique vector position |
Florian Klinglmueller
1 2 3 | scenarios <- expand.grid(m=c(0,1),s=c(1,2),n=10:20)
results <- simulate_batch(scenarios,10000,simulate_poly)
select_results(results,'n',"result")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.