Hi, I'm processing a data file with the following structure: #index time distance 1 10 500 1 15 300 1 23 215 1 34 200 2 5 400 2 13 340 2 15 210 3 10 200 3 12 150 3 16 30 etc
My intention was to generate line plots for the datapoints using their index to group the elements. I managed to get something to work using a for loop and some conditionals but I was wondering if there is a better way using factor or some other R method? Any help improving my R coding would be greatly appreciated! Thanks Jonathan [[alternative HTML version deleted]] ______________________________________________ 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.