View source: R/climatic_summary.R
climatic_summary | R Documentation |
climatic_summary
returns a data table displaying
summary statistics for element(s) (and for each station) in a given time period.
climatic_summary(
data,
date_time,
station = NULL,
elements = NULL,
year = NULL,
month = NULL,
dekad = NULL,
pentad = NULL,
to = c("hourly", "daily", "pentad", "dekadal", "monthly", "annual-within-year",
"annual", "longterm-monthly", "longterm-within-year", "station", "overall"),
by = NULL,
doy = NULL,
doy_first = 1,
doy_last = 366,
summaries = c(n = "~dplyr::n()"),
na_rm = FALSE,
na_prop = NULL,
na_n = NULL,
na_consec = NULL,
na_n_non = NULL,
first_date = FALSE,
n_dates = FALSE,
last_date = FALSE,
summaries_params = list(),
names = "{.fn}_{.col}"
)
data |
|
date_time |
|
station |
|
elements |
|
year |
|
month |
|
dekad |
|
pentad |
|
to |
|
by |
|
doy |
|
doy_first |
|
doy_last |
|
summaries |
|
na_rm |
|
na_prop |
|
na_n |
|
na_consec |
|
na_n_non |
|
first_date |
|
n_dates |
|
last_date |
|
summaries_params |
|
names |
Format of column names. Passed to |
A summary data frame for selected element(s) in climatic data.
# Calculate frequencies for tmin/tmax for each year, month, and station.
# filter daily_niger data for the example
daily_niger_1 <- daily_niger %>% dplyr::filter(year > 1960)
climatic_summary(data = daily_niger_1, date_time = "date", station = "station_name",
elements = c("tmin", "tmax"), to = "monthly")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.