Description Usage Arguments Value See Also Examples
View source: R/par_summarize_rainfall.R
A wrapper for summarize_rainfall to perform rainfall summary statistics calculations in parallel.
1 | par_summarize_rainfall(rain, num_cores = NULL, id_index = 1, ...)
|
rain |
data frame with daily rainfall data for each site |
num_cores |
integer indicating number of processors to use; if
|
id_index |
integer column index of unique site id |
... |
additional values passed to
|
tibble with rainfall summary statistics
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | ## Not run:
# Season defined by 15 March through 15 November
rain_summary <- par_summarize_rainfall(rain = rain_2yr,
start_month = 3,
end_month = 11)
# Same as example above, but restrict use to 2 processors
rain_summary <- par_summarize_rainfall(rain = rain_2yr,
start_month = 3,
end_month = 11,
num_cores = 2)
# Season defined by 15 March through 15 November, output separate rows for
# each year
rain_summary <- par_summarize_rainfall(rain = rain_2yr,
start_month = 3,
end_month = 11,
wide = FALSE)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.