get_cellweights: Subset weights of cells to the candidate cell ids

Description Usage Arguments Value

View source: R/move_prob.R

Description

Subset weights of cells to the candidate cell ids

Usage

1

Arguments

weights

numeric vector, weights to give each grid cell for sampling moves for use with sim_movement_prob; will be length ncells + 1, see cell_weights) for more details. defaults to NULL

cell_ids

integer vector, the cell ids corresponding to each grid cell in which the infectious individual is starting from

Value

a vector of weights corresponding to the cell_ids passed through


mrajeev08/simrabid documentation built on May 7, 2021, 11:47 a.m.