new_taxonomy: Create new database from a taxlist object

new_taxonomyR Documentation

Create new database from a taxlist object

Description

Create a new schema in a connected database containing a taxonomic list from a taxlist object.

If 'obj' is missing an empty database will be created. You can than use append_taxonomy() to insert a taxonomy in the empty database.

Usage

new_taxonomy(conn, obj, ...)

## S4 method for signature 'PostgreSQLConnection,missing'
new_taxonomy(
  conn,
  taxonomy,
  schema,
  schema_refs,
  add_attributes,
  add_to_names,
  ...
)

## S4 method for signature 'PostgreSQLConnection,taxlist'
new_taxonomy(conn, obj, ...)

Arguments

conn

A PostgreSQLConnection connecting to a database, where the new list will be stored.

obj

A taxlist object containing the new database.

...

Further arguments passed among methods (not in use).

taxonomy

A character value indicating the name (ID) of the new taxonomy in the database.

schema

A character value with the name of the new schema containing the taxonomic list.

schema_refs

A character value with the name of the new schema containing the references used as taxon views. It is recommended to have a separated schema for the references, especially if the views are formated as a BibTeX database (lib_df object).

add_attributes

A data frame used to add further columns into the table taxon_attributes in the database. The data frame has three mandatory columns, name, type (type of variable, which may include constraints) and comment. See add_columns() for more details.

add_to_names

A data frame used to add further columns into the table taxon_names in the database. See details for argument 'add_attributes' and in add_columns().


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