clean.collunits: clean sites objects to remove duplicates.

View source: R/clean.R

clean.collunitsR Documentation

clean sites objects to remove duplicates.

Description

Function that removes duplicate objects such as sites, datasets, or collection units.

Usage

## S3 method for class 'collunits'
clean(x, verbose = TRUE, ...)

Arguments

x

sites, datasets, collunits that may have duplicates.

verbose

parameter to prints out progress bar

...

Additional parameters associated with the call.

Value

cleaned collunits

Author(s)

Simon Goring goring@wisc.edu

Examples


clean_cols <- get_sites(sitename = "L%", limit = 1) %>%
  collunits()
more_cols <- get_sites(sitename = "La%", limit = 1) %>%
  collunits()
long_set <- c(clean_cols, more_cols)
length(long_set)
# By removing duplicates we get a smaller object.
length(clean(long_set))


neotoma2 documentation built on July 9, 2023, 7:37 p.m.