insert_synonym: Insert synonyms in PostgreSQL taxonomic lists

Description Usage Arguments Author(s)

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
insert_synonym(conn, ...)

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

insert_synonym_swea(
  conn,
  taxon_names = c("tax_commons", "taxonNames"),
  taxon_relations = c("swea_dataveg", "taxonRelations"),
  names2concepts = c("swea_dataveg", "names2concepts"),
  df,
  ...
)

Arguments

conn

A database connection provided by dbConnect().

...

Further arguments passed among methods.

taxon_names

A character vector of length 2 indicating the name of the respecitve schema and table in Postgres.

taxon_relations

taxon_names A character vector of length 2 indicating the name of the respecitve schema and table in Postgres.

names2concepts

taxon_names A character vector of length 2 indicating the name of the respecitve schema and table in Postgres.

df

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

clean

A logical value, whether strings in input 'df' should be cleaned or not (see clean_strings()).

Author(s)

Miguel Alvarez kamapu78@gmail.com


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