Description Usage Arguments Author(s)
Plots and records of species in the plots will be jointly inserted in a PostgreSQL database, whereby a series of checks will be carried out previous to insert the data.
This function carry out a series of checks on the input data previous to import them in the database (if not errored). The variable 'original_number' will be used for cross-check identities of entries in samples and in header. Connection to taxa via 'TaxonUsageID'.
1 2 3 4 5 6 7 8 9 10 11 12 13  | pg_insert_observations(conn, ...)
## S3 method for class 'PostgreSQLConnection'
pg_insert_observations(
  conn,
  samples,
  header,
  names2concepts,
  db_samples,
  db_header,
  geom,
  ...
)
 | 
conn | 
 A database connection provided by   | 
... | 
 Further arguments (not yet in use).  | 
samples | 
 A data frame including records of species in plots. Columns 'ReleveID' and 'TaxonUsageID' are mandatory in this object.  | 
header | 
 An object of class sp::SpatialPointsDataFrame including the information on the plots. In the attribute table the columns 'ReleveID' and 'original_number' are mandatory.  | 
names2concepts, db_samples, db_header | 
 Character vectors including the name of the respective schema and table in database.  | 
geom | 
 Character value indicating the name of the geometry variable in the database.  | 
Miguel Alvarez kamapu78@gmail.com
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.