Irescale (version 0.2.6)

loadFile: 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

Run this code
# NOT RUN {
fileInput <- system.file("testdata", "chessboard.csv", package="Irescale")
data<-loadFile(fileInput)
# }

Run the code above in your browser using DataLab