Usage
    # S3 method for class 'rast'
range(x, unit = "km", ...)
 
    
    Arguments
- x
- A SpatRaster with presence-absence data (0 or 1) for a
given species. 
- unit
- Character. Default is "km", "m" and "ha" also
available. 
- ...
- Additional arguments to be passed passed down from
a calling function. 
 
    
    Value
    A vector with an area in the chosen unit.