Skip to contents

A flexible setup function for mosquito dispersal. The first argument Kname dispatches a method: Kname is used to set the class of options, and the method dispatches on class(options)

Options for Kname are:

  • is.matrix(Kname): if the user passes a matrix, then class(Kname) <- "as_matrix"

  • Kname = "no_setup" – the xds object is returned unmodified

  • Kname = "as_matrix" – calls change_K_matrix and passes K_matrix

  • Kname = "herethere" – calls make_K_matrix_herethere

  • Kname = "xy" – calls make_K_matrix_xy

Usage

setup_K_matrix(Kname, xds_obj, options = list(), s = 1)

Arguments

Kname

a matrix or a string

xds_obj

an xds model object

options

a list of options to configure K_matrix

s

the vector species index

Value

an xds object