Re: [R] grouping data together

From: jim holtman <jholtman_at_gmail.com>
Date: Fri, 07 Nov 2008 20:49:12 -0500

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 <iverson0822_at_hotmail.com> 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_at_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_at_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.
Received on Sat 08 Nov 2008 - 01:51:21 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sat 08 Nov 2008 - 02:30:23 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive