translation: Translation edge correction

Description Usage Arguments Value Author(s) Examples

View source: R/TranslationEdgeCorrection.R

Description

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

Usage

1
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.

Author(s)

Glenna Nightingale

Examples

1
2
3
4
data(x)
data(y)
datafile = data.frame(x[,1],y[,1])
translation(datafile,1,1,1)

edgeCorr documentation built on May 2, 2019, 2:31 p.m.