If you provide the input and the expected output, it would help a lot. You could use 'split' to partition the data
monthly <- split(yourDF, yourDF$month) but I am still not sure exactly what you want to do with it, or the format that you are expecting. On Fri, Nov 7, 2008 at 6:03 PM, Swanton0822 <[EMAIL PROTECTED]> wrote: > > Hi. > i have a data, and there is 3 columns, Month, Year and Total. and there is > over 1000 rows for them because there is 87 years data for every month, so > there is month from Jan-Dec, and year from 1900-1987, > so i was wondering if i would want to make 12 groups (Jan,Feb.......,Dec), > and put each year's total into the corresponding month (so every month group > will have 88 values of total) > how can i do that? > many thanks. > -- > View this message in context: > http://www.nabble.com/grouping-data-together-tp20389726p20389726.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. > -- Jim Holtman Cincinnati, OH +1 513 646 9390 What is the problem that you are trying to solve? ______________________________________________ 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.