R/asc2im.r

"asc2im" <- function(x)
{
    ## Verifications
    if (!inherits(x, "asc"))
        stop("should be an object of class \"asc\"")
    if (attr(x, "type")=="factor")
        stop("function not yet implemented for factors")

    ## Results
    xy<-getXYcoords(x)
    sorties<-spatstat::im(t(unclass(x)), xy$x,xy$y)
    return(sorties)
  }

Try the adehabitat package in your browser

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

adehabitat documentation built on Jan. 28, 2018, 5:02 p.m.