View source: R/prepare_geoclim_month.R
prepare_geoclim_month | R Documentation |
prepare_geoclim_month
takes a data frame that is in monthly
format. This data is then rearranged to a format suitable for use in GeoCLIM.
This data frame can be rearranged and exported to a file or connection with
export_geoclim_month
.
prepare_geoclim_month(
data,
date_time = NULL,
year = NULL,
month = NULL,
element,
station_id,
latitude,
longitude,
metadata = NULL,
join_by = NULL,
add_cols = NULL
)
data |
|
date_time |
|
year |
|
month |
|
element |
|
station_id |
|
latitude |
|
longitude |
|
metadata |
|
join_by |
|
add_cols |
|
A data.frame formatted for use in GeoCLIM
# Calculate monthly summaries for the rainfall column
summary_data <- daily_niger %>% dplyr::group_by(year, month, station_name) %>%
dplyr::summarise(mean_rain = mean(rain))
prepare_geoclim_month(data = summary_data, year = "year", month = "month",
station_id = "station_name",
element = "mean_rain", metadata = stations_niger,
join_by = "station_name",
latitude = "lat", longitude = "long")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.