View source: R/distanceToClosestTrap.R
distanceToClosestTrap | R Documentation |
This function finds the closest trap to a lobster and calculates its distance and returns the distance and trap number.
distanceToClosestTrap(Lobster, Trap)
Lobster |
location of lobster in the grid in x and y coordinates. |
Trap |
location of trap in x and y coordinates. |
Returns distance to closest trap and the trap number.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.