If the secondary species concentration is determined in just a fraction of the aliquots and for some reason, the concentration in all the aliquots is required or desired, the function fits a polynomial trend line to the existing data and interpolates the concentration in missing aliquots.
fixSecondary(conc, time, compTime, order = 2)
Species concentration original vector.
Times at which given concentrations were determined.
Times at which the given species concentration must be interpolated.
Order of the polynomial to be fitted to data (1 or 2). Default to 2.
Vector of interpolated concentrations at times provided in
compTime
.