insert_collection: Insert new collections to database.

insert_collectionR Documentation

Insert new collections to database.

Description

A straight forward method to insert new collections in the specimens database. This will automatically create the respective specimens.

Usage

insert_collection(db, sf, bulk, ...)

## S4 method for signature 'PostgreSQLConnection,sf,integer'
insert_collection(db, sf, bulk, schema = "specimens", ...)

## S4 method for signature 'PostgreSQLConnection,sf,numeric'
insert_collection(db, sf, bulk, ...)

## S4 method for signature 'PostgreSQLConnection,sf,character'
insert_collection(db, sf, bulk, schema = "specimens", ...)

Arguments

db

Connections to the database as PostgreSQLConnection.

sf

An object of class sf to be appended into the table collections (schema specimens).

bulk

Either an integer or a character value indicating the ID or the name of the corresponding bulk, respectively. Note that you can insert new records to only one bulk at once. If you use a character value, the ID will be retrieved from the database (table projects, schema specimens). If the name is not in database, it will be considered as a new bulk and inserted accordingly.

...

Further arguments passed among methods.

schema

A character value with the names of the schema containing the specimens database.

Author(s)

Miguel Alvarez kamapu@posteo.com


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