parse_index: Parse indecies for test data.frames

Description Usage Arguments Value Examples

Description

The function parces the indecies for the data.frames of a particular test. Basically, the function uses the test names to identify the block of text containing the relevant data. And identify the beginning and the end line numbers of the test block.

Usage

1
parse_index(txt, tst)

Arguments

txt

A character string such as this returned by readLines

tst

A data.frame with test output summary such as that returned by parse_test

Value

A data.frame with three columns; name, start and end for the test name, start and end line number respectively.

Examples

1
2
3
4
fl <- system.file("extdata", "sample_1.txt", package = "Rfastqc")
txt <- readLines(fl)
tst <- parse_test(txt)
ind <- parse_index(txt, tst)

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