distances | R Documentation |
Extract the observation distances (i.e., responses for an Rdistance model) from an Rdistance model frame.
distances(ml, na.rm = TRUE, ...)
ml |
Either a Rdistance 'model frame' or an Rdistance
'fitted object'. Both are of class "dfunc".
Rdistance 'model frames' are lists containing components
necessary to estimate a distance function, but no estimates.
Rdistance 'model frames' are typically
produced by calls to |
na.rm |
Whether to include or exclude missing distance values.
In |
... |
Ignored |
A vector containing observation distances contained in the Rdistance model frame.
data(sparrowDf)
sparrowModel <- parseModel( sparrowDf, dist ~ observer )
stats::model.response(sparrowModel$mf)
distances(sparrowModel) # same, but future-proof
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.