HEAL-KGS / STICr

A collection of functions for tidying and processing raw data from Stream Temperature, Intermittency, and Conductivity (STIC) loggers
GNU Affero General Public License v3.0
4 stars 2 forks source link

Exponential calibration method doesn't work #20

Closed samzipper closed 1 week ago

samzipper commented 1 year ago

lm_calibration <- get_calibration(calibration_standard_data, method = "exponential") returns:

Error in get_calibration(calibration_standard_data, method = "exponential") : object 'standard' not found

For apply_calibration, I don't think the fitted lm would work because it wouldn't know that the log-transformation has occurred.

I think in get_calibration the log-transformation has to happen within the call to lm so that it gets carried forward into apply_calibration

samzipper commented 1 week ago

Removed exponential option - could add back later in corrected manner if needed