R/areaahull.R

areaahull <-
function (x, timeout = 5) 
{
    area <- withTimeout(try(areaahulleval(x), silent = TRUE), 
        timeout = timeout)
    if (!is.numeric(area)) {
        warning("Problem in area computation (Returns NA)")
        area <- NA
    }
    if (is.numeric(area) & area < 0) {
        warning("Problem in area computation (Returns NA)")
        area <- NA
    }
    return(area)
}

Try the alphahull package in your browser

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

alphahull documentation built on June 16, 2022, 5:10 p.m.