Learn R Programming

edgeCorr (version 1.0)

translation: Translation edge correction

Description

This function creates an extra copy of the dataset in whichever direction (right, left, top or bottom) is requested.

Usage

translation(pp, Length,Breadth, direction)

Arguments

pp
Dataframe comprising of two rows labelled x and y.
Length
Length of study area
Breadth
Breadth of study area
direction
The direction can be specified as either 1,2,3 or 4. 1,2,3,4 denote the right, left, top and bottom borders respectively.

Value

The xy coordinates for the additional dataset are returned.

Examples

Run this code
data(x)
data(y)
datafile = data.frame(x[,1],y[,1])
translation(datafile,1,1,1)

Run the code above in your browser using DataLab