Learn R Programming

rangeMapper (version 0.0-4)

assemblage.stat: The statistic to be applied at each grid cell

Description

A collection of wrappers around existing functions.

Usage

assemblage.stat(formula, FUN, data)

Arguments

formula
A two-sided formula, see rangeMap.save for details
FUN
The model used to compute the statistics of interest. See details
data
A data.frame containing the dependent variable and posibly other variables used in the modelling process, see rangeMap.save for details

Details

The assemblage.stat function is called by the rangeMap.save and FUN is applied at each pixel. FUN can be:
  • any function which can be applied on a numeric vector in which case the formula is of form y ~ 1.
  • lmerin (packagelme4) model of form y ~ 1 + (1|random_factor1) + (1|random_factor2) + ...

See Also

rangeMapper for a complete example. rangeMap.save.