R/checkbounds.R

Defines functions checkBounds

#Function to capture selected points
checkBounds <- function(bounds, fname) {
    if (length(bounds$x) < 2) warning(paste0("Bounding box not recorded for ", fname))
    if (length(bounds$x) > 26) warning(paste0("Only first 26 points used for ", fname))
    points <- utils::head(as.data.frame(bounds),26)
    return(points)
}

Try the boundingbox package in your browser

Any scripts or data that you put into this service are public.

boundingbox documentation built on July 1, 2020, 11:50 p.m.