con_time: con_time: estimates the consumption time.

Description Usage Examples

View source: R/mfafunctions96.R

Description

con_time: estimates the consumption time.

Usage

1
con_time(all_reads, summary.data)

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
imp_xml = xml2::read_xml(xml_doc_path)

# Get all reads for double checking
all_reads = import_plates(imp_xml)

print(all_reads)

Output:
ID                  Project  Line   Sex  Assay   ReadTime
HARD_0000_0_SPEC    HARD     0000   0    SPEC    2020-07-02 11:54:00
HARD_0000_0_SPEC    HARD     0000   0    SPEC    2020-07-03 08:49:00
HARD_TAPE_0_SPEC    HARD     TAPE   0    SPEC    2020-07-02 14:10:00
HARD_TAPE_0_SPEC    HARD     TAPE   0    SPEC    2020-07-03 10:53:00

# Calculate consumption times from matching IDs
consumption_times = con_time(imp_xml)

print(consumption_times)

ID                  Project  Line   Sex  Assay   Duration(hr)
HARD_0000_0_SPEC    HARD     0000   0    SPEC    20.9166666666667
HARD_TAPE_0_SPEC    HARD     TAPE   0    SPEC    20.7166666666667

jwalte5/mfa96 documentation built on April 10, 2021, 4:36 p.m.