Code to reproduce the results reported in "Extracting the geochemical characteristics of magmas in different global tectono-magmatic settings using sparse modeling" https://doi.org/10.3389/feart.2022.994580
To use this code, place "Uekietal_SMR_input.csv" at the same directroy with the Uekietal_SMR.R, and just
source("Uekietal_SMR.R")