MER: Minimum Enclosing Rectangle (MER)

Description Usage Arguments Details Value Author(s) Examples

View source: R/MER.R

Description

Calculates the minimum enclosing rectangle (MER) from a set of points (x,y)

Usage

1
MER(thepoints)

Arguments

thepoints

dataframe of points ie c(x,y)

Details

calculates the MER of a set of numbers'

Value

list of 4 doubles = xmin,xmax,ymin,ymax

Author(s)

Justin Moat. J.Moat@kew.org

Examples

1
2
3
4
x <- runif (20,0,10)
y <- runif (20,0,10)
df <- data.frame(x,y) 
MER (df)

rCAT documentation built on July 8, 2020, 6:22 p.m.