proximity(scene, method, proximityFun = NULL, averageType = "mean",
subject = "all", zeroPotDist = NULL)subject:
If subject is "population" the return list will contain a numeric
value that has a range depending on the method. If
subject is "pair" the return list will contain a matrix
with all pairwise proximity comparisons. If subject is "individual"
the return list will contain a dataframe with a column containing IDs and
a column containing proximity values. If subject is "all"
the return list will contain all three of the items above.method is "maxProp" then proximity between two
individuals will be calculated as 1 - distance/max(distance).
If method is "maxPropSqrd" then proximity between two
individuals will be calculated as (1 - distance/max(distance))^2.pop <- simulateScene()
proximity(pop, "maxProp")Run the code above in your browser using DataLab