Skip to contents

Function for printing the summary of species-area relationship objects from the ssarp::create_SAR() function

Usage

# S3 method for class 'SAR'
print(x, printlen = NULL, ...)

Arguments

x

The SAR object of interest

printlen

Should always be NULL

...

Parameters to pass to print()

Value

The summary of your species-area relationship

Examples

# The GBIF key for the Anolis genus is 8782549
# Read in example dataset filtered from:
#  dat <- rgbif::occ_search(taxonKey = 8782549, 
#                           hasCoordinate = TRUE,
#                           limit = 10000)
dat <- read.csv(system.file("extdata",
                            "ssarp_Example_Dat.csv",
                            package = "ssarp"))
#> Warning: file("") only supports open = "w+" and open = "w+b": using the former
#> Error in read.table(file = file, header = header, sep = sep, quote = quote,     dec = dec, fill = fill, comment.char = comment.char, ...): no lines available in input
occs <- find_land(occurrences = dat)
#> Error: object 'dat' not found
areas <- find_areas(occs = occs)
#> Error: object 'occs' not found
seg <- create_SAR(areas, npsi = 0)
#> Error: object 'areas' not found
print(seg)
#> Error: object 'seg' not found