Hi David Winsemius, thanks for the input but your reply seems to omit any answer!
Anyway, I've figured this out for myself, with some help from the reshape package. Solution: mdata <- melt(Humn02) Denormal <- cast(mdata, CASW~CO2Group~variable, sum) Check out the power of the reshape package here: http://had.co.nz/reshape/ Many thanks to the R community for making this possible, it's a joy to use. Robin -- View this message in context: http://r.789695.n4.nabble.com/Denormalize-data-tp3729817p3730066.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.