spocc objects and their print, plot, and summary methods

Share:

Description

spocc objects and their print, plot, and summary methods

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
## S3 method for class 'occdat'
print(x, ...)

## S3 method for class 'occdatind'
print(x, ...)

## S3 method for class 'occdat'
summary(object, ...)

## S3 method for class 'occdatind'
summary(object, ...)

## S3 method for class 'occnames'
print(x, ...)

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 option dplyr.print_max. Otherwise, will print dplyr.print_min

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
## Not run: 
# 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

## End(Not run)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.