loadFile {Irescale} | R Documentation |
Loads a file with latitude, longitude and variable of interest
Description
loadFile
loads the input file with the following format:
Column 1 represents the sample Id. It has to be Unique.
Column 2,3 Lat/Long respectively.
Column 4 and beyond the variables of interest.
Usage
loadFile(fileName)
Arguments
fileName |
the file's name and path. |
Value
it returns a data frame with two variables data
and varOfInterest
. The variable data
is a 2D list with the latitude and longitude respectly, while the variable varOfInterest
is a matrix with all the variables to calculate and rescale Moran's I.
Examples
fileInput <- system.file("testdata", "chessboard.csv", package="Irescale")
data<-loadFile(fileInput)
[Package Irescale version 2.3.0 Index]