Hi Thanks to all for posting! In plyr I did try something similar, a combination of what I learned from all who replied. It seemed to work. If anyone knows of any criticism about the grouping structure please let me know. I need this to be accurate. Grouping defined by (0-5m) (6-10m) (11-15m) (16-20m) (21-25m) (26-30m) (31-35m) without overlap of measurements. See script below:
data.to.analyze$VegIndex = cut (data.to.analyze$Veg,breaks=c(0,5,10,15,20,25,30,35), labels=c("(0-5)", "(6-10)", "(11-15)", "(16-20)", "(21-25)", "(26-30)", "(31-35)")) VegIndex <- data.to.analyze$VegIndex plot(VegIndex) Saludos, Jean -- View this message in context: http://r.789695.n4.nabble.com/Creating-vegetation-distance-groups-from-one-column-tp4644970p4645235.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.