R/Patch-Migration.R

Defines functions oneDay_migrationIn_Patch

Documented in oneDay_migrationIn_Patch

###############################################################################
#        ____        __       __
#       / __ \____ _/ /______/ /_
#      / /_/ / __ `/ __/ ___/ __ \
#     / ____/ /_/ / /_/ /__/ / / /
#    /_/    \__,_/\__/\___/_/ /_/
#
#   Patch Migration
#   Marshall Lab
#   jared_bennett@berkeley.edu
#   December 2019
#
###############################################################################
###############################################################################
# Outbound Migration
###############################################################################

# This has been moved to the network level.
# see Network-Migration.R


###############################################################################
# Inbound Migration
###############################################################################

#' Inbound Migration
#'
#' Accumulate all inbound migration to this patch.
#'
#' @param maleIn Vector of inbound migration
#' @param femaleIn Matrix of inbound migration
#'
oneDay_migrationIn_Patch <- function(maleIn, femaleIn){
  private$popMale[] = maleIn
  private$popFemale[] = femaleIn
}

Try the MGDrivE package in your browser

Any scripts or data that you put into this service are public.

MGDrivE documentation built on Oct. 23, 2020, 7:28 p.m.