nodePopPROP: Calculate the proportion of population that can flow into...

View source: R/nodePopPROP.R

nodePopPROPR Documentation

Calculate the proportion of population that can flow into each site

Description

This function calculates determines the proportion of the population flowing into a site - this is used to later parameterise preference

Usage

nodePopPROP(dta, population = 1000)

Arguments

dta

This is a dataframe. Columns of interest must be named: Site, Lat (for latitude), Lon (for longitude).

population

This is the total size of the populaiton or number of individuals allowed to flow through the network

Value

A matrix containing the proportion of the population able to flow into that

Examples

dta <- data.frame(Site= LETTERS[1:4], Lat= 1:4, Lon= 5:8, Pop=100:103)
nodePopPROP(dta, 300)




KiranLDA/migflow documentation built on June 14, 2025, 9:09 a.m.