Description Usage Arguments Examples
View source: R/mfafunctions96.R
sample_list: generates a simplified sample list containing unique IDs and optional duration between reads.
1 | sample_list(imp_xml, calc_duration)
|
imp_xml: |
An internal xml document imported via xml2::read_xml(). calc_duration: A logical variable indicating whether to return estimated consumption duration. Default calc_duration = FALSE. |
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 Assay ReadTime
HARD_0000_SPEC HARD 0000 SPEC 2020-07-02 11:54:00
HARD_0000_SPEC HARD 0000 SPEC 2020-07-03 08:49:00
HARD_TAPE_SPEC HARD TAPE SPEC 2020-07-02 14:10:00
HARD_TAPE_SPEC HARD TAPE SPEC 2020-07-03 10:53:00
# Calculate consumption times from matching IDs
consumption_times = sample_list(imp_xml, calc_duration = TRUE)
print(consumption_times)
ID Project Line Assay Duration(hr)
HARD_0000_SPEC HARD 0000 SPEC 20.9166666666667
HARD_TAPE_SPEC HARD TAPE SPEC 20.7166666666667
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.