Irescale (version 0.2.6)

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

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

Run the code above in your browser using DataLab