Description Usage Arguments Value Author(s) Examples
View source: R/TranslationEdgeCorrection.R
This function creates an extra copy of the dataset in whichever direction (right, left, top or bottom) is requested.
1 | translation(pp, Length,Breadth, direction)
|
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. |
The xy coordinates for the additional dataset are returned.
Glenna Nightingale
1 2 3 4 | data(x)
data(y)
datafile = data.frame(x[,1],y[,1])
translation(datafile,1,1,1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.