db2vegtable: Import PostgreSQL databases into vegtable objects

View source: R/db2vegtable.R

db2vegtableR Documentation

Import PostgreSQL databases into vegtable objects

Description

Import and adaption of Postgres tables into objects of class vegtable.

In the case that some schemas are not mentioned, the function assumes such tables are located in the same schema as the table header. Thus for databases placed in just one schema, this need to be set only in argument header_schema.

Usage

db2vegtable(conn, ...)

## S3 method for class 'PostgreSQLConnection'
db2vegtable(
  conn,
  database,
  header_cols,
  geometry = "plot_centroid",
  as_list = FALSE,
  ...
)

Arguments

conn

A database connection provided by dbConnect().

...

Further arguments passed to db2taxlist().

database

Character value indicating the name of the database to be imported.

header_cols

A character vector including the names of columns from the table header to be included in the output data set. If not indicated, all columns will be imported.

geometry

Character vectors indicating the name of the variables stored as geometries in PostGIS.

as_list

Logical value indicating whether a list or an object of class vegtable should be returned.


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