export_depths: Reshape depths of biological samples to CLAM or BACON format

Description Usage Arguments Value References Examples

Description

This function takes depths data, as returned by get_samples or extracted from a epd.entity-class object, and transforms them to comply with CLAM or BACON format.

Usage

1
2
3
4
5
6
7
export_depths(x)

## S4 method for signature 'data.frame'
export_depths(x)

## S4 method for signature 'epd.entity'
export_depths(x)

Arguments

x

data.frame Data frame with at least a column called depthcm or epd.entity-class object to extract this information from.

Value

Vector with depths in ascending order.

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
## Not run: 
epd.connection <- connect_to_epd(host = "localhost", database = "epd",
                              user = "epdr", password = "epdrpw")
depths.1 <- .get_psamples(1, epd.connection)
export_depths(depths.1)
epd.1 <- get_entity(1, epd.connection)
export_depths(epd.1)

## End(Not run)

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