Learn R Programming

LobsterCatch (version 0.1.0)

trapInPath: This function determines if lobster gets into a trap and is caught.

Description

This function determines if lobster gets into a trap and is caught.

Usage

trapInPath(loc1, loc2, Trap, howClose)

Value

Returns a vector that contain lobster path and whether its trapped

Arguments

loc1

is the location of lobster at the start of each time step

loc2

is the location of lobster at the end of each time step

Trap

is the location of trap

howClose

The area within which a lobster considered trapped