Description Usage Arguments Value See Also Examples
View source: R/apply_methods.R
apply_methods() and its aliases apply_metrics and begin_benchmark take either lists of datasets or benchmark_tbl objects and applies a list of functions. The output is a benchmark_tbl where each method has been applied to each dataset or preceeding result.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | apply_methods(x, fn_list, name = NULL, suppress.messages = TRUE)
## S3 method for class 'list'
apply_methods(x, fn_list, name = NULL, suppress.messages = TRUE)
## S3 method for class 'benchmark_tbl'
apply_methods(x, fn_list, name = NULL, suppress.messages = TRUE)
## S3 method for class 'tbl_df'
apply_methods(x, fn_list, name = NULL, suppress.messages = TRUE)
apply_metrics(x, fn_list, name = NULL, suppress.messages = TRUE)
begin_benchmark(x, fn_list, name = NULL, suppress.messages = TRUE)
|
x |
the list of data or benchmark tibble to apply methods to |
fn_list |
the list of methods to be applied |
name |
(optional) the name of the column for methods applied |
suppress.messages |
TRUE if messages from running methods should be suppressed |
benchmark_tbl object containing results from methods applied, the first column is the name of the dataset as factors, middle columns contain method names as factors and the final column is a list of results of applying the methods.
1 2 3 4 5 6 7 8 9 10 11 12 13 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.