MixSIAR
MixSIAR copied to clipboard
How to use both elemental and isotopic data in the model
Hello everyone, I am trying to model the mixing of some end-members to form a river-water composition using both elemental (Ca, Mg, Sr, Na etc.) and isotopic (87/86Sr) data. I am unable to get any such example where both elemental and isotopic data has been used. When I am using a combination of elemental and isotopic data using
mix <- load_mix_data(filename=mix.filename, iso_names=c("Sr87","Cl","Ca","Mg"), factors="Group", fac_random=TRUE, fac_nested=FALSE, cont_effects=NULL)
source <- load_source_data(filename=source.filename, source_factors=NULL, conc_dep=TRUE, data_type="means", mix) the following error is coming: Error in load_source_data(filename = source.filename, source_factors = NULL, : Concentration dependence column names mislabeled. Should be 'Conc' + iso_names, e.g. 'Concd13C' if iso_names = 'd13C'. Please ensure Conc headings in source data file match iso_names in mix data file and try again. Alternatively, you may have set conc_dep=T by mistake. Please help to resolve this issue.
Hi Shiba, did you already solve this? I've the same problem atm. Would love to know how you solved it. Kind regards Max