Re: [R] Operating on the value from row i and row i+1

2014-08-15 Thread Jaiprasart, Pharavee (HSC)
ients with the same x will return the same y. Do you have any other suggestions? Thanks! Pharavee -Original Message- From: MacQueen, Don [mailto:macque...@llnl.gov] Sent: Thursday, August 14, 2014 3:06 PM To: Jaiprasart, Pharavee (HSC) Cc: r-help@r-project.org; Jeff Newmiller; Bert G

Re: [R] Operating on the value from row i and row i+1

2014-08-14 Thread Jaiprasart, Pharavee (HSC)
uot;, or if I ask for response of time == 12, it will return "4", and so on. Pharavee -Original Message- From: Bert Gunter [mailto:gunter.ber...@gene.com] Sent: Thursday, August 14, 2014 11:27 AM To: Jaiprasart, Pharavee (HSC) Cc: r-help@r-project.org Subject: Re: [R] Opera

[R] Operating on the value from row i and row i+1

2014-08-14 Thread Jaiprasart, Pharavee (HSC)
Hi all, I'd like to make a step plot of Time vs Response graph. This is the example of my data frame - the real data frame has more than a thousand rows. Time Duration of infusion Infusion RateResponse Subtype 0 3