[R] grouping data together

cruz cruadam at gmail.com
Sat Nov 8 02:39:32 CET 2008

hi friend,

this is from your previous posts on Kruskal-Wallis test:)
i came up with this one:

A5 <- read.table('kew.dat' ,header=TRUE)
plot(factor(A5$Month, levels=month.abb), A5$Rain)

is that what you want?

On Sat, Nov 8, 2008 at 7:03 AM, 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.

More information about the R-help mailing list