View source: R/old_code/bluehill_functions.2.R View source: R/bluehill_functions.R
bh_read_raw | R Documentation |
RawData files can contain optional header rows that describe the test as parameter: value pairs, followed by a blank row, then the recorded data.
bh_read_raw(filename, min_results = TRUE, use_label = TRUE, use_filename = FALSE, headers = FALSE)
filename |
the name of the RawData file to process. |
min_results |
if |
use_label |
if |
use_filename |
if |
headers |
if |
The data part has two rows of column header: variable names in the first row, then units in the second. Subsequent rows have the data in columns.
This function reads any parameters into a data.table
with columns for
"type", "var", "value" and "units" A special header is added to describe the
location of the end of the header as information, blank_row, n
wheren
is the row number of the blank line that marks the end of the
header (0 is there was no header). This can be passed to bh_read_data
to indicate where the data starts.
if headers == TRUE
a list with data = a data.table
holding
the raw data and header = a data.table
holding headers
if headers == FALSE
just the data.table
holding the raw data
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.