export_events: Reshape events data to CLAM or BACON format

Description Usage Arguments Details Value References Examples

Description

This function takes event data, as those queried by get_chron or stored in a epd.entity-class object, and modifies them to fit into a new table that complies with CLAM or BACON format.

Usage

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

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

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

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 event data as those extracted from get_chron or get_entity

y

data.frame Data frame with event data as those extracted from get_chron.

Details

If x is an epd.entity-class or an epd.entity.df-class object, y is not used.

Value

Data frame with event 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
## Not run: 
epd.connection <- connect_to_epd(host = "localhost", database = "epd",
                              user = "epdr", password = "epdrpw")
epd.51 <- get_entity(51, epd.connection)
export_events("clam", epd.51)
export_events("clam", .get_synevent(51, epd.connection), .get_event(26, epd.connection))
export_events("bacon", epd.51)
export_events("bacon", .get_synevent(51, epd.connection), .get_event(26, epd.connection))

## End(Not run)

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