bh_read_data: Read the data from a RawData file

View source: R/old_code/bluehill_functions.2.R View source: R/old_code/bluehill_functions.1.R View source: R/bluehill_functions.R

bh_read_dataR Documentation

Read the data from a RawData file

Description

RawData files can contain header rows that describe the test, followed by a blank line and then the measured channels in columns. This function reads the data channels, starting after blank_row to skip any headers. Data channels have two line headers, with the channel names in the first line and units in the second. This function discards channel units. If min_results = TRUE then only the Time, Extension and Load channels are returned. By default all the channels in filename are read.

Usage

bh_read_data(filename, blank_row = 0, select_cols = NULL)

Arguments

filename

the RawData file to process.

blank_row

line number of the end of any header. Defaults to 0 (no header).

select_cols

a list of columns to return by number (or all if NULL). Defaults to NULL.

Value

A data.table with the measured channels in columns and the channel names as column names.


yadbor/bluer documentation built on Jan. 31, 2023, 7:44 p.m.