R/storemapattr.r

"storemapattr" <- function(x)
{
    ## Verifications
    if ((!inherits(x,"asc"))&(!inherits(x,"kasc")))
        stop("x should be a map of class asc or kasc")

    ## creates an object containing only the attributes of the arguments
    toto<-0
    if (inherits(x, "asc"))
        x<-as.kasc(list(x=x))
    toto<-getkascattr(x,toto)
    class(toto)<-"mapattr"

    ## output
    return(toto)
  }

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.