View source: R/getDfuncModelFrame.R
getDfuncModelFrame | R Documentation |
Returns the model frame from a formula and data set. This routine is intended to only be called from within other Rdistance functions.
getDfuncModelFrame(formula, data)
formula |
A dfunc formula object. See |
data |
The data frame from which variables in formula (potentially) come. |
This routine is needed to get the scoping correct in dfuncEstim
.
In dfuncEstim
, we first merge the detection and site data frames, then
call this routine.
a model frame containing the response and covariates resulting from evaluating formula in data.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.