distances {Rdistance} | R Documentation |
distances - Observation distances
Description
Extract the observation distances (i.e., responses for an Rdistance model) from an Rdistance model frame.
Usage
distances(ml, na.rm = TRUE, ...)
Arguments
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 |
Value
A vector containing observation distances contained in the Rdistance model frame.
Examples
data(sparrowDf)
sparrowModel <- parseModel( sparrowDf, dist ~ observer )
stats::model.response(sparrowModel$mf)
distances(sparrowModel) # same, but future-proof