Dealing with discordance: a novel approach for analysing U–Pb detrital zircon datasets

R code, in .R format