loadDistanceMatrix {Irescale} | R Documentation |
LoadDistanceMatrix
Loads the distance matrix, avoiding computing it from latitude and longitude.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.
loadDistanceMatrix(fileName, colnames = TRUE, rownames = TRUE)
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 |
The distance matrix
fileInput <- system.file("testdata", "chenDistance.csv", package="Irescale")
distM<-loadDistanceMatrix(fileInput)