Learn R Programming

rCAT (version 0.1.6)

MER: Minimum Enclosing Rectangle (MER)

Description

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

Usage

MER(thepoints)

Arguments

thepoints

dataframe of points ie c(x,y)

Value

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

Details

calculates the MER of a set of numbers'

Examples

Run this code
# NOT RUN {
x <- runif (20,0,10)
y <- runif (20,0,10)
df <- data.frame(x,y) 
MER (df)
# }

Run the code above in your browser using DataLab