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