Advanced Use Only. This low-level function creates an object of class "dists" from raw numerical data.
dists(df, area, n_obj, max_dist)is.dists(obj)
An object of class dists
.
A data frame with the columns sim
, dist
, and ratio
containing an indicator of the model run (0:n_sim), distances between
the objects of the patterns, and the ratios of a buffer with distance
dist
inside the study area (needed for Ripley's edge correction).
size of the study area in square units
number of objects in the pattern
maximum distance to be measured in pattern
an R object, preferably of class dists