R/print.asc.r

"print.asc" <- function(x, ...)
{
    ## Verifications
    if (!inherits(x, "asc")) stop("Non convenient data")

    ## The output
    cat("Raster map of class \"asc\":\n")
    cat("Cell size: ", attr(x, "cellsize"), "\n")
    cat("Number of rows: ", ncol(x), "\n")
    cat("Number of columns: ", nrow(x), "\n")
    cat("Type: ", attr(x, "type"), "\n")
}

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.