createObservedMatrixFromCsv: Create a matrix of observed population movements

View source: R/movement.R

createObservedMatrixFromCsvR Documentation

Create a matrix of observed population movements

Description

Reads a correctly formatted csv file and creates a matrix containing observed movement between different indexed locations

Usage

createObservedMatrixFromCsv(filename, origincolname, destcolname, valcolname)

Arguments

filename

File path of the csv file to process

origincolname

The name of the column containing origin IDs

destcolname

The name of the column containing destination IDs

valcolname

The name of the column containing population movement values

Value

A matrix containing observed population movements. Row and column numbers correspond to the indexes of a sorted list of the origins found in the csv file. Values are the actual population movements.


SEEG-Oxford/movement documentation built on April 17, 2023, 4:17 p.m.