R/data.R

#' Boundary of mainland Africa
#'
#' The overall continental boundary of mainland Africa queried from
#' `rnaturalearth` and get processed.
#'
#' @format A \code{\link{sf}} with one rows and 2 fields
#' \describe{
#' \item{name}{(`character`) The name of the polygon: Africa}
#' \item{area}{(\code{\link{units}}) The united number of the overall area in
#' km2. This is not a consensus area, but just a calculated area under this
#' resolution.}
#' \item{geometry}{(\code{\link{sfc}}) The simple polygon feature of the
#' boundary}}
#'
#' @source \code{rnaturalearth}
#'
'mainland_africa'


#' Occurrence dataset of a virtual species
#'
#' A pseudo presence-absence occurrence dataset of a virtual species made
#' by package `virtualspecies`.
#'
#' @format A `data.frame` with 300 rows and 2 fields
#' \describe{
#' \item{x}{(`numeric`) The x coordinates of the records in
#' WGS84 geographic coordinate system}
#' \item{y}{(`numeric`) The y coordinates of the records in
#' WGS84 geographic coordinate system}
#' \item{observation}{(`numeric`) The observations of presence and absence.}
#' \item{usage}{(`character`) The usage of the occurrences, either be "train"
#' as training set, or "eval" as test set.}}
#'
#' @details
#' The environmental niche of the virtual species is made by defining its
#' response functions to annual temperature and annual precipitation
#' in mainland Africa.
#' The response function of annual temperature is normal distribution with
#' mean = 22 and standard deviation = 5.
#' The response function of annual precipitation is normal distribution with
#' mean = 1000 and standard deviation = 200.
#' Then the suitability is convert to presence-absence map by logistic
#' conversion with beta = 0.7, alpha = -0.05, and species prevalence = 0.27.
#' Finally 500 presence-absence points are sampled across the whole region.
#' Then these points were randomly split into train (0.7) and test set (0.3).
#'
#'
#' @source \code{virtualspecies}
#'
'occ_virtual_species'

Try the itsdm package in your browser

Any scripts or data that you put into this service are public.

itsdm documentation built on July 9, 2023, 6:45 p.m.