import_swea: Personalized Import Functions

Description Usage Arguments Details Value Author(s)

View source: R/import_swea.R

Description

This function performs a personalized import for the database SWEA-Dataveg and is a wrapper for postgres2vegtable.

Usage

1
2
3
4
5
6
7
8
import_swea(conn, header_schema="swea_dataveg", coverconvert_schema="commons",
		cover_names=c("br_bl","b_bbds","ordinal"), geometry="plot_centroid",
		description=c(database="SWEA-Dataveg", author="Miguel Alvarez",
				givd_code="AF-00-006",
				url="https://kamapu.github.io/swea_dataveg.html"),
		add_relation=c(country_code="commons"),
		references="M:/Literatur/00_DB_JabRef/MiguelReferences.bib", ...)
import_sudamerica(conn, header_schema="sudamerica", description, ...)

Arguments

conn

A connection to database created by dbConnect.

header_schema, coverconvert_schema

Character value indicating the schema containing the header table and tables for conversion of cover, respectively.

cover_names

Character vector indicating the names of cover values in table samples.

geometry

Character value indicating the name of column in table header, which contains the coordinates for the plots (only point geometry allowed).

description

Named character vector containing information to be attached as metadata.

add_relation

Named character vector indicating relations located in different schemas (name is the relation table and value is the schema).

references

Path to bibtex file including bibliographic references.

...

Further arguments passed to postgres2vegtable.

Details

This function is wrote for a PostgreSQL version of SWEA-Dataveg.

Value

A vegtable object.

Author(s)

Miguel Alvarez, [email protected].


kamapu/vegtable2 documentation built on Feb. 11, 2019, 9:15 a.m.