trap.covar: Returns covariate values of mask point closest to each trap.

Description Usage Arguments Details Value

Description

Finds mask point closest to each trap then assigns to the trap the covariate value in attributes(mask)$covariates[[cname]] that is associated with this mask point.

Usage

1
trap.covar(traps, mask, cname)

Arguments

traps

Trap object.

mask

Mask object.

cname

Name of the covariate associated with the mask that you want to attach to the traps.

Details

Finds mask point closest to each trap then assigns to the trap the covariate value in attributes(mask)$covariates[[cname]] that is associated with this mask point.

Value

Returns a vector with covariate values associated with each trap, in the same order as they appear in traps


david-borchers/secrgam documentation built on May 14, 2019, 9:30 p.m.