Re: [R] Formatting data for bootstrapping for confidence intervals

2012-10-11 Thread Paul Wennekes
Thank you! That had me stuck for quite a while and this worked like a charm! -- View this message in context: http://r.789695.n4.nabble.com/Formatting-data-for-bootstrapping-for-confidence-intervals-tp4645860p4645920.html Sent from the R help mailing list archive at Nabble.com. ___

Re: [R] Formatting data for bootstrapping for confidence intervals

2012-10-11 Thread arun
Original Message - From: Paul Wennekes To: r-help@r-project.org Cc: Sent: Thursday, October 11, 2012 11:55 AM Subject: [R] Formatting data for bootstrapping for confidence intervals Hi all, New to R, so this may be obvious to some. I've been trying to figure this out for a while, I have a da

Re: [R] Formatting data for bootstrapping for confidence intervals

2012-10-11 Thread Rui Barradas
Hello, To aggregate the data use, yes, it's exists, function aggregate. with(dat, aggregate(cbind(X, Xn, Y), list(Area, DATE), FUN = sum)) # output Group.1 Group.2 X Xn Y 1 1 1/10/10 1 1 0 2 1 1/11/10 0 0 1 3 1 1/12/10 3 0 0 4 2 2/12/10 2 1 1 5 2 2/13/10 3 0

[R] Formatting data for bootstrapping for confidence intervals

2012-10-11 Thread Paul Wennekes
Hi all, New to R, so this may be obvious to some. I've been trying to figure this out for a while, I have a dataset "events" that looks something like this: AreaNAMEDATEX Xn Y 1 X 1/10/10 1 1 0 1 Y 1/11/10