R/method_getArea-CompactStratification.R

setMethod(
    f = "getArea",
    signature = signature(
        object = "CompactStratification"
    ),
    definition = function(object) {
        cellSize <- getCellSize(object)
        cellArea <- prod(cellSize)
        nCells <- getNumberOfCells(object)
        nCells * cellArea        
    }
)

Try the spcosa package in your browser

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

spcosa documentation built on April 11, 2023, 6:04 p.m.