Learn R Programming

PointedSDMs (version 2.1.2)

makeFormulaComps: makeFormulaComps: function to make components for the covariate and bias Formulas.

Description

An internal function used to make the formula components required for inlabru.

Usage

makeFormulaComps(form, species, speciesnames, type)

Value

A vector of components required for inlabru.

Arguments

form

The formula which needs to be changed into a component.

species

Logical indicating if species occur in the model.

speciesnames

The names of the species occurring in the model.

type

What type of component is being created: one for the covariate formula or the bias formula.