insert_concepts: Insert taxonomic concepts in database

View source: R/insert_concepts.R

insert_conceptsR Documentation

Insert taxonomic concepts in database

Description

Insert new taxonomic concepts by using accepted names. A previous use of the name in the taxonomy will retrieve an error message. Names that are new for the database will be inserted in the main list of names.

Usage

insert_concepts(conn, ...)

## S3 method for class 'PostgreSQLConnection'
insert_concepts(
  conn,
  taxonomy,
  schema = "plant_taxonomy",
  df,
  clean = TRUE,
  eval = TRUE,
  ...
)

Arguments

conn

A database connection provided by dbConnect().

...

Further arguments passed among methods.

taxonomy

Character value with the name of the taxonomy in the database.

schema

Character value indicating the name of the schema containing all taxonomic tables in the database.

df

A data frame with new names and related information. Two columns are mandatory, namely usage_name and author_name, both as character vectors. Further important columns are rank (taxonomic rank), parent_id (concept ID of the parent taxon), and view_key (bibtexkey of the reference used as taxon view).

clean

A logical value indicating cleaning of characters.

eval

A logical value indicating whether the produced SQL commands should be sent to the database or not.


kamapu/vegtableDB documentation built on June 18, 2024, 1:13 a.m.