createObservedMatrixFromCsv | R Documentation |
Reads a correctly formatted csv file and creates a matrix containing observed movement between different indexed locations
createObservedMatrixFromCsv(filename, origincolname, destcolname, valcolname)
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 |
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.