Skip to contents

Adds columns of georeference to trait-data table if measurements relate to specimens from the Biodiversity Exploratories plots or regions.

This function requires valid credentials for the Biodiversity Exploratories Information System (BExIS)!

Usage

standardize.exploratories(
  x,
  plots = "locationID",
  user = NULL,
  pswd = NULL,
  getdata = !is.null(user),
  fillall = TRUE,
  ...,
  verbose = NULL
)

Arguments

x

A traitdata table of class 'traitdata'.

plots

Name of column containing the plot IDs. Must match the Exploratories EP_PlotID scheme (e.g. AEG1, AEG12, HEW21, ...).

user

User name for Biodiversity Exploratories Information System (BExIS, https://www.bexis.uni-jena.de); required for download of exact geolocation.

pswd

password for above request. Will be prompted for if not provided.

getdata

logical; if FALSE it suppresses the extraction of location data from BExIS, and will not ask for user credentials. Instead, public data of less precision will be used.

fillall

if TRUE (default), the output will contain all terms suggested by the glossary and fill empty columns with NA. This is required for an upload of the data to BExIS.

...

If input is a rawdata table of type species-trait matrix or occurence table (wide table) then provide parameters according to as.traitdata().

verbose

logical; if FALSE all messages will be suppressed.

Value

A traitdata object with harmonized location data from the context of the Biodiversity Exploratories project.

Examples


if (FALSE) {
moths <- read.service(21247, dec = ",")

dataset1 <- as.traitdata(moths, taxa = "species", traits = c(body_mass =
    "weight", wing_length = "wing_length", wing_width = "wing_width", wing_area =
    "wing_area", wing_loading = "wing_loading"),
  keep = c(locationID = "plot"))

dataset1Std <- standardize.exploratories(dataset1)
}