near2: Find nearby localities that are likely occurrences given...

Description Usage Arguments Examples

View source: R/search_fun.R

Description

Given an occurrence set, find nearby localities that have an equal or greater multivariate likelihood given a set of environmental PDFs. Will return up to one simulated record per given occurrence, however, it is unlikely that so many suitable points will be found.

Usage

1
near2(ext_ob, clim, dens_ob, type, name = "NULL", w = FALSE)

Arguments

ext_ob

A data.frame of climate values (i.e., extracted from the climate raster object). Will be passed to multiv_likelihood().

clim

A raster object of climate data (matching x)

dens_ob

A density object from vegdistmod::densform(), vegdistmod::and_fun(), or vegdistmod::or_fun();

type

Designate either ".gauss" or ".kde".

name

Optional. Give taxon name.

w

To weight log-likelihoods by coefficient of variation or not.

Examples

1
2
3
4
5
6
7
## Not run: 
data(abies);
ext.abies = extraction(abies, climondbioclim, schema='flat', factor = 2);
dens.abies = densform(ext.abies, climondbioclim);
n <- near2(ext.abies, climondbioclim, dens.abies, type = '.kde');

## End(Not run)

rsh249/vegdistmod documentation built on May 28, 2019, 3:31 a.m.