par_summarize_rainfall: Rainfall summary statistics calculated in parallel

Description Usage Arguments Value See Also Examples

View source: R/par_summarize_rainfall.R

Description

A wrapper for summarize_rainfall to perform rainfall summary statistics calculations in parallel.

Usage

1
par_summarize_rainfall(rain, num_cores = NULL, id_index = 1, ...)

Arguments

rain

data frame with daily rainfall data for each site

num_cores

integer indicating number of processors to use; if NULL (default), uses one fewer than the number of processors available

id_index

integer column index of unique site id

...

additional values passed to summarize_rainfall

Value

tibble with rainfall summary statistics

See Also

summarize_rainfall

Examples

 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)

jcoliver/weathercommand documentation built on Sept. 12, 2021, 3:28 a.m.