[R] rollmean help (or similar function)

2010-08-20 Thread Hall, Ken (CDC/OSELS/NCPHI)
I am working on a simple pilot project comparing the capability of SQL, SAS and R to perform a rolling mean per the following instructions. I have completed the SQL and SAS analysis, so now it's R's turn. Calculate mean values of x (x=count) for each date in the dataset where mean = the average c

Re: [R] Aggregate Help

2010-08-20 Thread Hall, Ken (CDC/OSELS/NCPHI)
was another problem. Now, all suggestions by all three posts to solve this aggregation work perfectly. Thanks to all. Ken -Original Message- From: David Winsemius [mailto:dwinsem...@comcast.net] Sent: Friday, August 20, 2010 11:12 AM To: Hall, Ken (CDC/OSELS/NCPHI) Subject: Re: [R] Aggreg

Re: [R] Aggregate Help

2010-08-20 Thread Hall, Ken (CDC/OSELS/NCPHI)
di...@gmail.com] Sent: Thursday, August 19, 2010 5:13 PM To: Hall, Ken (CDC/OSELS/NCPHI) Cc: r-help@r-project.org Subject: Re: [R] Aggregate Help On Thu, Aug 19, 2010 at 4:45 PM, Hall, Ken (CDC/OSELS/NCPHI) wrote: > Please let me know if this is or is not the right place to ask these &g

Re: [R] Aggregate Help

2010-08-20 Thread Hall, Ken (CDC/OSELS/NCPHI)
dually and the group, just the group or just individually? Or does it depend on the context of my response? -Original Message- From: Phil Spector [mailto:spec...@stat.berkeley.edu] Sent: Thursday, August 19, 2010 5:00 PM To: Hall, Ken (CDC/OSELS/NCPHI) Cc: r-help@r-project.org Subje

[R] Aggregate Help

2010-08-19 Thread Hall, Ken (CDC/OSELS/NCPHI)
Please let me know if this is or is not the right place to ask these types of questions. Warning: I am new to R by two days. I have a simple dataset. I have loaded the dataset successfully using the following code: Filepath=(C:\temp\\pilot\dataset1.txt") Pilot=read.table(filepath, header=TRUE)