Re: [R] mean of each month in data

2012-12-17 Thread Rui Barradas
thankyou very much indeed once again eliza Date: Mon, 17 Dec 2012 09:32:54 -0800 From: smartpink...@yahoo.com Subject: Re: [R] mean of each month in data To: eliza_bo...@hotmail.com CC: r-help@r-project.org HI, May be this helps: dat1<-read.table("Eliza.txt",sep="",header

Re: [R] mean of each month in data

2012-12-17 Thread Rui Barradas
n, 17 Dec 2012 09:32:54 -0800 From: smartpink...@yahoo.com Subject: Re: [R] mean of each month in data To: eliza_bo...@hotmail.com CC: r-help@r-project.org HI, May be this helps: dat1<-read.table("Eliza.txt",sep="",header=TRUE,stringsAsFactors=FALSE) library(reshape2) res<-lap

Re: [R] mean of each month in data

2012-12-17 Thread eliza botto
h indeed once again eliza > Date: Mon, 17 Dec 2012 09:32:54 -0800 > From: smartpink...@yahoo.com > Subject: Re: [R] mean of each month in data > To: eliza_bo...@hotmail.com > CC: r-help@r-project.org > > HI, > > May be this helps: > dat1<-read.table("El

Re: [R] mean of each month in data

2012-12-17 Thread arun
   3 2.27  2.4 2.27  2.4 A.K. - Original Message - From: eliza botto To: "r-help@r-project.org" Cc: Sent: Monday, December 17, 2012 12:11 PM Subject: [R] mean of each month in data Dear R users, [in case the format of email is changed or you dont finf it easy to understand, i ha

Re: [R] mean of each month in data

2012-12-17 Thread David L Carlson
ject.org [mailto:r-help-bounces@r- > project.org] On Behalf Of Rui Barradas > Sent: Monday, December 17, 2012 12:06 PM > To: eliza botto > Cc: r-help@r-project.org > Subject: Re: [R] mean of each month in data > > Hello, > > Something like this? > > > dat <

Re: [R] mean of each month in data

2012-12-17 Thread Rui Barradas
Hello, Something like this? dat <- structure(list(st = structure(c(2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1

[R] mean of each month in data

2012-12-17 Thread eliza botto
Dear R users, [in case the format of email is changed or you dont finf it easy to understand, i have attached a text file of my question] i have the data in the following format and i want to convert it in the format given at the end. Ta ans Sa are the names of certain cities. there are 69 citie