Skip to content

Commit 40bab61

Browse files
committed
add wordlclim_bio_names
1 parent ed87389 commit 40bab61

File tree

4 files changed

+85
-0
lines changed

4 files changed

+85
-0
lines changed

R/worldclim_bio_names.R

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#' @title WorldClim `"bio"` names
2+
#' @description Character vector of names for the `geodata::worldclim_global`
3+
#' etc. `SpatRaster` layers, as a convenience alternative to the default
4+
#' detailed and accurate but horridly unreadable format of `wc2.1_30s_bio_1`
5+
#' etc.
6+
#'
7+
#' @name worldclim_bio_names
8+
#'
9+
#' @format ## `worldclim` `character` vector of names
10+
#'
11+
#' @return `character`
12+
#'
13+
#' @source \url{https://www.worldclim.org/}
14+
#'
15+
16+
"worldclim_bio_names"

data-raw/worldclim_bio_names.R

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# BIO1 = Annual Mean Temperature
2+
# BIO2 = Mean Diurnal Range (Mean of monthly (max temp - min temp))
3+
# BIO3 = Isothermality (BIO2/BIO7) (×100)
4+
# BIO4 = Temperature Seasonality (standard deviation ×100)
5+
# BIO5 = Max Temperature of Warmest Month
6+
# BIO6 = Min Temperature of Coldest Month
7+
# BIO7 = Temperature Annual Range (BIO5-BIO6)
8+
# BIO8 = Mean Temperature of Wettest Quarter
9+
# BIO9 = Mean Temperature of Driest Quarter
10+
# BIO10 = Mean Temperature of Warmest Quarter
11+
# BIO11 = Mean Temperature of Coldest Quarter
12+
# BIO12 = Annual Precipitation
13+
# BIO13 = Precipitation of Wettest Month
14+
# BIO14 = Precipitation of Driest Month
15+
# BIO15 = Precipitation Seasonality (Coefficient of Variation)
16+
# BIO16 = Precipitation of Wettest Quarter
17+
# BIO17 = Precipitation of Driest Quarter
18+
# BIO18 = Precipitation of Warmest Quarter
19+
# BIO19 = Precipitation of Coldest Quarter
20+
21+
worldclim_bio_names <- c(
22+
"tavg_y",
23+
"temp_range_d",
24+
"isothermality",
25+
"temp_seasonality",
26+
"tmax_warm_m",
27+
"tmin_cold_m",
28+
"temp_range_y",
29+
"tavg_wet_q",
30+
"tavg_dry_q",
31+
"tavg_warm_q",
32+
"tavg_cold_q",
33+
"precip_y",
34+
"precip_wet_m",
35+
"precip_dry_m",
36+
"precip_seasonality",
37+
"precip_wet_q",
38+
"precip_dry_q",
39+
"precip_warm_q",
40+
"precip_cold_q"
41+
)
42+
43+
usethis::use_data(worldclim_bio_names, overwrite = TRUE)

data/worldclim_bio_names.rda

240 Bytes
Binary file not shown.

man/worldclim_bio_names.Rd

Lines changed: 26 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)