Open RobFryer opened 1 year ago
Need to also specify the target basis of each auxiliary variable - currently this is assumed, although lipidwt is adjusted to a wet weight basis and sediment normalisers are adjusted to a dryweight basis.
Pull request 171 tightens up code and error checking (and loses some hard-wired code) Still need to generalise the way joining variables and the merged variables are associated with each auxiliary variable. Also need to tidy up the conversion to target bases of each auxiliary variable
The routine for merging auxiliary variables with the data depends on the auxiliary variable. For example, length is taken to be for the whole organism, so is the same for any measurement in that individual, whereas lipid weight is matrix specific. Need to generalise this using the reference table somehow.