loadDistanceMatrix {Irescale}R Documentation

Loads a distance matrix. Instead of computing the distance from latitute and longitude LoadDistanceMatrix Loads the distance matrix, avoiding computing it from latitude and longitude.

Description

Loads a distance matrix. Instead of computing the distance from latitute and longitude LoadDistanceMatrix Loads the distance matrix, avoiding computing it from latitude and longitude.

Usage

loadDistanceMatrix(fileName, colnames = TRUE, rownames = TRUE)

Arguments

fileName

file's name and path to the file

colnames

If the first row of the file is the names for the columns. The default value is TRUE

rownames

If the first column is the the row names. The default value is TRUE

Value

The distance matrix

Examples

fileInput <- system.file("testdata", "chenDistance.csv", package="Irescale")
distM<-loadDistanceMatrix(fileInput)

[Package Irescale version 2.3.0 Index]