pred_suit: Write suitability line for a predator

Description Usage Arguments Value Author(s) Examples

View source: R/function.R

Description

Write suitability line for a predator

Usage

1
2
pred_suit(pred = NA, prey = NA, fun = "newexponentiall50",
  params = NULL)

Arguments

pred

Character. The name of the predator

prey

Character. The preyname of the stock to be eaten

fun

Character. The selection function for the predator

params

A list of named parameters that are needed by fun. Names will be used to output the switches to be used by gadget. Alternatively, a vector of numbers can be used.

Value

A character vector of the form <preyname> function <functionname> <vector of parameters>

Author(s)

Paul Frater

Examples

1
2
3
4
5
6
7
8
gadgetstock('garfish', '~', missingOkay=T) %>%
    gadget_update('doeseat',
                   name = 'comm',
                   suitability = pred_suit(pred='garfish',
                                            prey='zebrafish', 
                                            fun='newexponentiall50',
                                            params=list('alpha', 'l50')),
                   data = garfish.consumption[[1]])

bthe/rgadget documentation built on Oct. 21, 2018, 5:16 p.m.