loadChessBoard: Loads a chessboard or matrix alike input file.

Description Usage Arguments Value Examples

View source: R/rectifiedI.R

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

1
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

1
2
fileInput <- system.file("testdata", "chessboard.csv", package="Irescale")
data<-loadChessBoard(fileInput)

Irescale documentation built on Nov. 22, 2019, 1:07 a.m.