bh_normalise: Make all tests positive going

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

bh_normaliseR Documentation

Make all tests positive going

Description

Compression is defined as negative, so compressive tests have negative Load and Extension. Bluehill provides Compressive Load and Compressive Extension, but these are not in every test, so this function checks if Load is going negative (i.e. a compressive test) and if so inverts Load and Extension so that the test will move from low to high extension and low to high load.

Usage

bh_normalise(study_data)

Arguments

study_data

A data.table containing at least columns Load and Extension.

Value

The same data.table with Load and Extension always going from low to high


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