rand_route: Random route selection

View source: R/tbsa.R

rand_routeR Documentation

Random route selection

Description

Randomly select route for a fish through a project from a multinomial distribution based on routing probabilities.

Usage

rand_route(fish_num, route_names, route_probs)

Arguments

fish_num

Number of fish in the simulation

route_names

Vector of route names through a project

route_probs

Vector of probabilities that fish enters each route; should sum to one.


EnvironmentalScienceAssociates/tbsa documentation built on Feb. 3, 2023, 6:46 a.m.