export_c14: Reshape C14 table to CLAM or BACON format

Description Usage Arguments Value References Examples

Description

This function takes C14 table (data.frame), as those extracted from get_geochron or from an epd.entity-class object, and modifies it to fit into a new table that complies with CLAM or BACON format.

Usage

1
2
3
4
5
6
7
export_c14(format, x, y)

## S4 method for signature 'character,data.frame,data.frame'
export_c14(format, x, y)

## S4 method for signature 'character,epd.entity,missing'
export_c14(format, x)

Arguments

format

character Character string indicating whether to export to "clam" or to "bacon" format.

x

data.frame Data frame or epd.entity-class object with C14 data as those extracted from get_geochron or get_entity.

y

data.frame Data frame with geochron table, as the one extracted with get_geochron. If x is an epd.entity-class object, y is not used.

Value

Data frame with C14 data in CLAM or BACON format.

References

http://www.chrono.qub.ac.uk/blaauw/clam.html

http://chrono.qub.ac.uk/blaauw/bacon.html

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## Not run: 
epd.connection <- connect_to_epd(host = "localhost", database = "epd",
                              user = "epdr", password = "epdrpw")
epd.400 <- get_entity(400, epd.connection)
epd.400.c14 <- export_c14("clam", epd.400)
epd.400.ageb <- export_agebasis("clam", epd.400)
rbind(epd.400.c14, epd.400.ageb)
epd.400.c14 <- export_c14("bacon", epd.400)
epd.400.ageb <- export_agebasis("bacon", epd.400)
rbind(epd.400.c14, epd.400.ageb)

## End(Not run)

dinilu/EPDr documentation built on Aug. 22, 2019, 1:03 p.m.