Learn R Programming

LobsterCatch (version 0.1.0)

randomMove: The function randomly selects an angle (0:360) and moves the lobster. This function is called when a lobster is outside the area of influence.

Description

The function randomly selects an angle (0:360) and moves the lobster. This function is called when a lobster is outside the area of influence.

Usage

randomMove(Lobster, dStep)

Value

Returns the new coordinates of each lobster

Arguments

Lobster

location of lobster in x and y coordinates

dStep

is how much a lobster moves in each time step