Re: [R] Caculate first difference from a dataframe; write a simulation

2009-08-05 Thread David Winsemius
On Aug 4, 2009, at 2:12 PM, Meenu Sahi wrote: Dear R Users I'm writing my first simulation in R. I've put across my problems with a smaller example in the attachment along with the questions. Please help. See Simpson reply to Q1 ##Question2: How can I easily identify which out of the 9

Re: [R] Caculate first difference from a dataframe; write a simulation

2009-08-05 Thread Gavin Simpson
On Tue, 2009-08-04 at 23:42 +0530, Meenu Sahi wrote: > Dear R Users > > I'm writing my first simulation in R. > I've put across my problems with a smaller example in the attachment along > with the questions. Q1 - mydat4[, 1:2] is not a matrix! It is a data.frame. > class(mydat4[, 1:2]) [1] "dat

[R] Caculate first difference from a dataframe; write a simulation

2009-08-04 Thread Meenu Sahi
Dear R Users I'm writing my first simulation in R. I've put across my problems with a smaller example in the attachment along with the questions. Please help. Best regards Meenu mydat<-read.table(textConnection("Level spread change State 4.57 1.6 BlF NA 4.45 2.04 BrS NA 3.07 2.49 BlS NA 3.26 -0