fixTemperatures fixes flags (3) regarding raw temperature parameters.

fixTemperatures(
  data,
  substrate_temperature_ids = NULL,
  ambient_temperature_ids = NULL,
  ambient_temperature_run_ids = NULL
)

Arguments

data

list format output of procFulcrum.

substrate_temperature_ids

vector of fulcrum_id of rows of substrate_temperature to revert to original/raw temperature.

ambient_temperature_ids

vector of fulcrum_id of rows of ambient_temperature to revert to original/raw temperature.

ambient_temperature_run_ids

vector of fulcrum_id of rows of ambient_temperature_run to set proc_ambient_temperature, ambient_humidity to NA.

Value

an edited (per passed fulcrum_id values) list format output of procFulcrum to be used in easyfulcrum workflow (passed into joinFulcrum()).

Details

To be run after checkTemperatures, user is advised to select the returned fulcrum_id for changing (upon inspection) from checkTemperatures() to pass into this function. flagged substrate temperature: occurs when substrate temperature > 40, procFulcrum will automatically convert to celsius (assumes temperature incorrectly in fahrenheit). flagged ambient temperature: occurs when ambient temperature > 40, procFulcrum will automatically convert to celsius (assumes temperature incorrectly in fahrenheit). flagged ambient run temperature: occurs when ambient humidity and temperature are repeated in subsequent measurements, this is meant to flag values if probe is stuck, procFulcrum does not automatically modify anything for this flag. We advise re-running checkTemperatures() on the saved output of fixTemperatures() to ensure that wanted edits have appropriately occurred.