export_agebasis: Reshape agebasis table to CLAM or BACON format

Description Usage Arguments Value References Examples

Description

This function takes agebasis data, as those from get_chron or from an epd.entity-class, used to calibrate chronologies of that entity in the EPD, and modifies them to fit into a new table that complies with CLAM or BACON format.

Usage

1
2
3
4
5
6
7
8
export_agebasis(format, x)

## S4 method for signature 'character,data.frame'
export_agebasis(format = c("clam", "bacon"),
  x)

## S4 method for signature 'character,epd.entity'
export_agebasis(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 with agebasis data as those in an agebasis table returned by get_chron or get_entity.

Value

Data frame with no-C14 data in CLAM or BACON format. This data frame can be easily combined with C14 data from export_c14 using rbind.

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.