insert_concept: Insert names or concepts in PostgreSQL taxonomic lists

Description Usage Arguments

Description

Insert synonyms to existing taxa in a PostgreSQL version of taxlist objects.

This function is updating the tables taxonNames and names2concepts in the PostgreSQL version of the database.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
insert_concept(conn, ...)

## S3 method for class 'PostgreSQLConnection'
insert_concept(
  conn,
  taxon_names,
  taxon_relations,
  names2concepts,
  taxon_views,
  taxon_levels,
  df,
  clean = TRUE,
  ...
)

insert_concept_swea(conn, ...)

## S3 method for class 'PostgreSQLConnection'
insert_concept_swea(
  conn,
  taxon_names = c("tax_commons", "taxonNames"),
  taxon_relations = c("swea_dataveg", "taxonRelations"),
  names2concepts = c("swea_dataveg", "names2concepts"),
  taxon_views = c("bib_references", "main_table"),
  taxon_levels = c("tax_commons", "taxonLevels"),
  df,
  ...
)

Arguments

conn

A database connection provided by dbConnect().

...

Further arguments passed among methods.

taxon_names, taxon_relations, names2concepts, taxon_views, taxon_levels

Character vectors indicating the name of the respective schemas and tables in database.

df

A data frame with new names and related information (including taxon concept ID).

clean

A logical value indicating cleaning of characters.


kamapu/vegtables2 documentation built on July 8, 2021, 7:57 a.m.