Learn R Programming

DSpat (version 0.1.6)

LTDataFrame: Creates covariate dataframes

Description

Creates covariate dataframes for observations and dummy quadrature points

Usage

LTDataFrame(study.area, lines, lines.psp, int.formula, det.formula, covariates, Q.lt)

Arguments

study.area
owin object that defines study area
lines
data frame of lines with structure as shown in quadscheme.lt
lines.psp
psp class with added list elements width and label
int.formula
model formula for intensity process
det.formula
model formula for detection scale process
covariates
covariate dataframe (see DSpat for structure)
Q.lt
lt quadscheme of class quad

Value

cov.df
dataframe of covariates followed by rows for covariates for dummy quadrature points
covariate.im
list of covariate images

Details

Checks to make sure that all of the variables used in formula are either in covariates or in lines. Then it extracts the values of covariates for each observation and for dummy points. These are merged with the needed covariates from lines and then a single dataframe is returned with the observations followed by the dummy points. In addition, the covariate images in a list are returned to keep with the dspat object for use in integrate.intensity.

See Also

quadscheme.lt,create.covariate.images