Description Usage Arguments Value Examples
View source: R/analysis_wrapper.R
This wrapper takes as input, some analysis function, fun
, and
returns a function that will run that analysis function on all the time
series in a dataset. Some post-processing attempts to handle merging of
the output in a sensible way.
1 | analysis_wrapper(fun)
|
fun |
the analysis function |
a function that takes in a dataset
and optional arguments, and
returns a data.frame or tibble with the combined results, and an "id"
column with the name of the species
1 2 3 4 5 6 | ## Not run:
sgs_data <- MATSS::get_sgs_data()
summarize_dataset <- analysis_wrapper(ts_summary)
summarize_dataset(sgs_data)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.