summary.sampbias: Summary Method for Class sampbias

Description Usage Arguments Value See Also Examples

View source: R/summary.sampbias.R

Description

Summary method for objects of the class sampbias.

Usage

1
2
## S3 method for class 'sampbias'
summary(object, ...)

Arguments

object

An object of the class sampbias

...

Additional arguments passed to summary.

Value

Summary printed to screen.

See Also

SamplingBias is.sampbias plot.sampbias

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
#simulate data
occ <- data.frame(species = rep(sample(x = LETTERS, size = 5), times = 10),
                  decimallongitude = runif(n = 50, min = -5, max = 5),
                  decimallatitude = runif(n = 50, min = -4, max = 4))


#create point gazetteer
pts <- data.frame(long = runif(n = 5, min = -5, max = 5),
                  lat = runif(n = 5, min = -4, max = 4),
                  dat = rep("A", 5))
pts <- SpatialPointsDataFrame(coords = pts[,1:2], data = data.frame(pts[,3]))

lin <- data.frame(long = seq(-5, 5, by = 1),
                  lat = rep(2, times = 11))
lin <- SpatialLinesDataFrame(sl = SpatialLines(list(Lines(Line(lin), ID="B1"))),
                             data = data.frame("B", row.names = "B1"))

gaz <- list(lines.strucutre = lin, point.structure = pts)

out <- SamplingBias(x = occ, gaz = gaz, terrestrial = FALSE)
summary(out)

azizka/sampbias documentation built on June 4, 2017, 12:07 a.m.