loadChessBoard {Irescale} | R Documentation |
Loads a chessboard or matrix alike input file.
Description
loadChessBoard
is used when the input file has a 2D shape, this is a board shape, and it is only one variable of interest.
For example:
1 | 1 | 1 | 1 | 1 | 1 |
2 | 2 | 2 | 2 | 2 | |
3 | 3 | 3 | 3 | 3 | |
4 | 4 | 4 | 4 | 4 | |
Usage
loadChessBoard(fileName)
Arguments
fileName |
the path and file's name to load. |
Value
data frame with two variables, the first variable is a vector with coordinate x (latitude) and y (longitude), the second variable contains the values of the variable of interest.
Examples
fileInput <- system.file("testdata", "chessboard.csv", package="Irescale")
data<-loadChessBoard(fileInput)
[Package Irescale version 2.3.0 Index]