project_bias: Projecting Bias Effects in Space

View source: R/project_bias.R

project_biasR Documentation

Projecting Bias Effects in Space

Description

Uses the the estimated bias weights from a sampbias object to project the bias through space, using the same raster as used for the distance calculation.#'

Usage

project_bias(x, factors = NULL)

Arguments

x

an object of the class sampbias.

factors

a character vector indicating which biasing factors to project

Value

A raster stack, with the same length as the number of biasing factors used in calculate_bias. The names indicate the factors included for each layer.

See Also

calculate_bias, summary.sampbias

Examples


## Not run: 
  #simulate data
  occ <- data.frame(species = rep(sample(x = LETTERS, size = 5), times = 10),
                   decimalLongitude = runif(n = 50, min = 12, max = 20),
                   decimalLatitude = runif(n = 50, min = -4, max = 4))

  out <- calculate_bias(x = occ, terrestrial = TRUE)
  proj <- project_bias(out)

## End(Not run)


azizka/sampbias documentation built on Feb. 1, 2024, 7:51 p.m.