get_chron: Retrieve chronological information for EPD entities

Description Usage Arguments Value get_chron .get_chron .get_agebound .get_agebasis .get_rational .get_alsegs .get_panldpt .get_synevent .get_event Examples

View source: R/EPDr-get_functions.R View source: R/EPDr-get_functions.R

Description

Functions in this family retrieves information relative to the chronologies used to calculate samples ages for a particular entity. The main function (get_chron) requires a valid connection to the database and the entity ID for the entity of interest. All other functions (starting with a dot [.]) use different arguments depending on the piece of information they retrieve.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17

Arguments

e_

numeric Value indicating the entity number (e_) of the database that want to be queried.

connection

PostgreSQLConnection Object of class PostgreSQLConnection as returned by function connect_to_epd.

rcode

character Three letter code for the rational.

event_

numeric Value indicating the event number (event_) of the database of the requested event.

Value

chron-class object. This is an EPDr object with information from different tables. See documentation of the EPD: http://www.europeanpollendatabase.net/data/downloads/image/pollen-database-manual-20071011.doc).

get_chron

This function returns a chron-class object with several information from the rest of the functions for a particular entity.

.get_chron

This functions returns a data.frame with information in in the CHRON table for the specified entity. This corresponds with chronologies for that entity.

.get_agebound

This functions returns a data.frame with information in in the AGEBOUND table for the chronologies in that entity. This corresponds with age limits for that entity calculated according to each chronology.

.get_agebasis

This functions returns a data.frame with information in in the AGEBASIS table for the specified entity. This corresponds with the depth and C14 data used to calibrate the age-depth model in each chronology.

.get_rational

This functions returns a data.frame with information in in the RATIONAL table for the specified entity. This corresponds with the rational to use each sample in the AGEBASIS table to calibrate the age-depth model.

.get_alsegs

This functions returns a data.frame with information in in the ALSEGS table for the specified entity. This corresponds with segments of annual laminations in the entity.

.get_panldpt

This functions returns a data.frame with information in in the P_ANLDPT table for the specified entity. This corresponds with details on the lamination for each segment on the ALSEGS table for each entity.

.get_synevent

This functions returns a data.frame with information in in the SYNEVENT table for the specified entity. This corresponds with the geological events that affect that entity.

.get_event

This functions returns a data.frame with information in in the EVENT table for the specified entity. This corresponds with details on the geological event specified for that entity in the SYNEVENT table.

Examples

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

## End(Not run)

dinilu/EPDr documentation built on Jan. 31, 2018, 1:58 a.m.