release: Release a table for an herbarium

View source: R/release.R

releaseR Documentation

Release a table for an herbarium

Description

Processing data frame obtained by read_specimens() to be released at a respective herbarium.

Some herbaria have a template for storage of data.

Usage

release(x, ...)

## S3 method for class 'specimens'
release(x, herb, trans, ...)

Arguments

x

A specimens object retrieved by read_specimens().

...

Further arguments passed among methods (not in use).

herb

A character value containig the code of the herbarium for the release.

trans

A list containing translations of variable names to the requested template. The name of the elements represent an herbarium (usually as code by the Index Herbariorum) and contain a database with two columns: in for the column name of the input object (after coersing to data frame), and the column out with the names respective column names in the output. For columns in the requested output without representative in the specimens object, you may indicate it with NA values at in. If not provided, this function will use a pre installed translator (check with specimensDB:::translator).

Value

A data frame with columns sorted and named for release at a respective herbarium.


kamapu/specimensDB documentation built on March 15, 2024, 1:27 p.m.