list_countries: List countries in the EPD

Description Usage Arguments Value Examples

View source: R/EPDr-list_functions.R

Description

This function looks into the database and returns all information in the POLDIV1 table (see documentation of the EPD: http://www.europeanpollendatabase.net/data/downloads/image/pollen-database-manual-20071011.doc). This belong to the country level in political and administrative level. Because the function returns a whole table, it only needs a parameter with a valid connection to the database.

Usage

1

Arguments

connection

PostgreSQLConnection Object of class PostgreSQLConnection as returned by function connect_to_epd.

Value

data.frame The function returns a data frame with two columns: poldiv1 and name.

Examples

1
2
3
4
5
6
## Not run: 
epd.connection <- connect_to_epd(host = "localhost", database = "epd",
                                 user = "epdr", password = "epdrpw")
list_countries(epd.connection)

## End(Not run)

dinilu/EPDr documentation built on Jan. 13, 2018, 9:03 p.m.