[R] How to extract information from the following dataset?

2011-05-12 Thread Xin Zhang
the measurements only from a specific day and hour, i.e. if I want measurements from Jan 27 2010 16:--:-- then I get 125,125,176,159,142,142,125,125,125,125,125,125. Many thanks!! -- Xin Zhang Ph.D Candidate Department of Statistics University of California, Riverside [[alternative HTML

Re: [R] Data frame self-join with no duplicates

2010-09-27 Thread Xin Zhang
; On Mon, Sep 27, 2010 at 4:29 AM, Xin Zhang wrote: >> >> Suppose I have the following data frame (df): >> >> Year    Price >> --- >> 2001    10 >> 2002    20 >> 2003    30 >> >> I would

[R] Data frame self-join with no duplicates

2010-09-27 Thread Xin Zhang
Suppose I have the following data frame (df): YearPrice --- 200110 200220 200330 I would like to produce another data frame like this: a.Yeara.Priceb.Yearb.Price 200220200110 200330