db2vegtable | R Documentation |
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
.
db2vegtable(conn, ...)
## S3 method for class 'PostgreSQLConnection'
db2vegtable(
conn,
database,
header_cols,
geometry = "plot_centroid",
as_list = FALSE,
...
)
conn |
A database connection provided by |
... |
Further arguments passed to |
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. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.