
spocc objects and their print, plot, and summary methods
Source:R/methods.r
, R/occ_names.R
spocc_objects.Rd
spocc objects and their print, plot, and summary methods
Arguments
- x
Input, of class occdatind
- ...
Further args to print, plot or summary methods
- object
Input to summary methods
- n
Number of rows to show. If
NULL
, the default, will print all rows if less than optiondplyr.print_max
. Otherwise, will printdplyr.print_min
See also
Other queries:
occ_names_options()
,
occ_names()
,
occ_options()
,
occ()
Examples
if (FALSE) {
# occdat object
res <- occ(query = 'Accipiter striatus', from = 'gbif')
res
print(res)
class(res)
# occdatind object
res$gbif
print(res$gbif)
class(res$gbif)
# print summary of occdat object
summary(res)
# print summary of occdatind object
summary(res$gbif)
# Geometry based searches print slightly differently
bounds <- c(-120, 40, -100, 45)
(res <- occ(from = "idigbio", geometry = bounds, limit = 10))
res$idigbio
## Many bounding boxes/WKT strings
bounds <- list(c(165,-53,180,-29), c(-180,-53,-175,-29))
res <- occ(from = "idigbio", geometry = bounds, limit = 10)
res$idigbio
}