[R] Rearranging dataset

2007-10-10 Thread Megh Dal
Hi all, I have a datasei like this : ID Date Price aa 01/01/07 12 aa01/02/07 13 bb 01/01/0723 bb01/02/0712 Now I want to write them in following format : ID Date Price ID Date

Re: [R] Rearranging dataset

2007-10-10 Thread Megh Dal
I want to create a data-frame. any idea? Moshe Olshansky <[EMAIL PROTECTED]> wrote: What do you mean by write - write to file, create a data.frame? --- Megh Dal wrote: > Hi all, I have a datasei like this : > > ID Date Price > aa 01/01/07 12 > aa 01/02/07 13 > bb 01/0

[R] Finding NA values.

2007-10-16 Thread Megh Dal
I have a vector with some of it's elements are NA. I am looking for a function to detect what are the corresponding index number of NA values. Anyone can help me on this regard? - Building a website is a piece of cake. [[alternative HTML version

[R] Fetching datapoints from a Time Series

2007-10-24 Thread Megh Dal
Hi all, I have a time series like that : DateValue 01/03/05 -0.008471364 01/04/05 -0.008153802 01/05/05 -0.000780031 01/06/05 -0.000130064 01/07/05 -0.000650576 01/08/05 -0.000130166 01/10/05 -0.004174282 01/11/05 0.01027384 01/12/05 -0.006099558 01/13/05 -0.0

[R] Fetching datapoints from a Time Series

2007-10-24 Thread Megh Dal
Hi all, I have a time series like that : DateValue 01/03/05 -0.008471364 01/04/05 -0.008153802 01/05/05 -0.000780031 01/06/05 -0.000130064 01/07/05 -0.000650576 01/08/05 -0.000130166 01/10/05 -0.004174282 01/11/05 0.01027384 01/12/05 -0.006099558 01/13/05 -0.0

[R] Fetching datapoints from a Time Series

2007-10-24 Thread Megh Dal
Hi all, I have a time series like that : DateValue 01/03/05 -0.008471364 01/04/05 -0.008153802 01/05/05 -0.000780031 01/06/05 -0.000130064 01/07/05 -0.000650576 01/08/05 -0.000130166 01/10/05 -0.004174282 01/11/05 0.01027384 01/12/05 -0.006099558 01/13/05 -0.0

[R] Fetching datapoints from a Time Series

2007-10-24 Thread Megh Dal
Hi all, I have a time series like that : DateValue 01/03/05 -0.008471364 01/04/05 -0.008153802 01/05/05 -0.000780031 01/06/05 -0.000130064 01/07/05 -0.000650576 01/08/05 -0.000130166 01/10/05 -0.004174282 01/11/05 0.01027384 01/12/05 -0.006099558 01/13/05 -0.0

[R] Putting column names in some automated way

2007-09-16 Thread Megh Dal
Dear all, I have following codes: colnames(data) = c("var", "var", "var") i = c(1,2,3) Now I want construct a "for" loop starting from 1 to 3 to give the new names of columns for dataframe "data" like below colnames(data) > c("var1", "var2", "var3") Definitely I could do this manually, howev

<    1   2