is.sampbias: Is Method for Class sampbias

View source: R/is.sampbias.R

is.sampbiasR Documentation

Is Method for Class sampbias

Description

Check class of sampbias objects.

Usage

## S3 method for class 'sampbias'
is(object, class2 = "sampbias")

Arguments

object

an object of the class sampbias

class2

the names of the class to which is relations are to be examined defined, or (more efficiently) the class definition objects for the classes.

Details

With two arguments, tests whether object can be treated as from class2. With one argument, returns all the super-classes of this object's class.

Examples

## Not run: 
  #simulate data
  occ <- data.frame(species = rep(sample(x = LETTERS, size = 5), times = 10),
                   decimalLongitude = runif(n = 50, min = 12, max = 20),
                   decimalLatitude = runif(n = 50, min = -4, max = 4))

  out <- calculate_bias(x = occ, terrestrial = TRUE)
  is(out)

## End(Not run)

azizka/sampbias documentation built on Feb. 1, 2024, 7:51 p.m.