knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)

Overview of datasets available in pastclim

A number of datasets are available in pastclim. It is possible to use custom datasets as long as they are properly formatted (look at the article on how to format custom datasets if you are interested). It is possible to get a list of all available datasets with:

library(pastclim)
data_path <- file.path(tempdir(), "pastclim_data")
# clear it in case it exists already
unlink(data_path, recursive = TRUE)
# set data path
set_data_path(
  path_to_nc = data_path,
  ask = FALSE,
  write_config = FALSE,
  copy_example = TRUE
)
get_available_datasets()

A more comprehensive list can be obtained with:

list_available_datasets()

For each dataset, you can get detailed information using the help function:

help("Example")
pastclim:::get_dataset_info(dataset = "Example")

Here we provide the full documentation for each dataset (sorted in alphabetical order):

list_datasets <- list_available_datasets()
list_datasets <- c(list_datasets[!grepl("WorldClim_2.1", list_datasets)], "WorldClim_2.1")
for (i in sort(list_datasets)) {
  pastclim:::get_dataset_info(i)
  cat("\n#######################################################\n")
}


EvolEcolGroup/pastclim documentation built on Nov. 6, 2023, 5:11 a.m.