parse_data: Parse test data.frames

Description Usage Arguments Value Examples

Description

The function parses the block of text of a particular test and returns a tidy data.frame. The block of relevant text is first identified by a start and and end line numbers and parsed as strings which is split later and made a data.frame of.

Usage

1

Arguments

txt

A character string such as this returned by readLines

start

An integer to mark the beginning of the table for a test

end

An integer to mark the end of the table for a test

Value

A data.frame of the test data.

Examples

1
2
3
4
5
fl <- system.file("extdata", "sample_1.txt", package = "Rfastqc")
txt <- readLines(fl)
tst <- parse_test(txt)
ind <- parse_index(txt, tst)
dat <- parse_data(txt, start = ind$start[1], ind$end[1])

MahShaaban/Rfastqc documentation built on May 6, 2019, 4:36 p.m.