entity_to_matrices: Calculate data matrices from 'epd.entity-class' objects

Description Usage Arguments Details Value Examples

Description

This function takes an epd.entity-class object and transforms data from tables in the object to new tables in the form of matrices. Information in the new tables, are easier to understand and manipulate than those in the native format of the EPD. Transformed data include samples, ages of that samples, and counts for that samples (both biological and no-biological particles).

Usage

1
2
3
4
entity_to_matrices(x)

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

Arguments

x

epd.entity Object of class epd.entity-class to be modified.

Details

The function return a epd.entity.df-class object, which is an expanded version of epd.entity-class objects with eight new slots. This new object are intended to be modified for standardizations but keeping an unmodified version of the data and structure of the epd.entity-class object. Four slots contains the data in the new format, while four others store information to track changes made from standardization and modification functions (e.g., counts_to_percentages.

Value

epd.entity.df object. Expanded version of x with certain data reformated into data matrices instead of the native EPD format.

Examples

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

## End(Not run)

dinilu/EPDr documentation built on Jan. 13, 2018, 9:03 p.m.