Re: [R] Subset a datafram according to time

2012-02-13 Thread NickNz125
Its just made up for the time being, they are just made up values to explain what i want to be able to do. This data in same format as my actual data set. Cheers -- View this message in context: http://r.789695.n4.nabble.com/Subset-a-datafram-according-to-time-tp4372293p4386197.html Sent from t

Re: [R] Subset a datafram according to time

2012-02-09 Thread Jim Holtman
In the first line of dataframe 3, I don't see where the value of 2.456 for ObsrG came from. Can you give us a hint of how that was computed? Sent from my iPad On Feb 9, 2012, at 21:05, NickNz125 wrote: > I want the combine and align by time DATAFRAME1 with DATAFRAME2. DF1 is > second observa

Re: [R] Subset a datafram according to time

2012-02-09 Thread NickNz125
I want the combine and align by time DATAFRAME1 with DATAFRAME2. DF1 is second observations and DF2 6 minutes observations want to extract the ObsrG data from DF1 to match the times in DF2. Therefore getting DF3 with Observations (Obsrg) extracted from DF1 to match the times in DF2. DATAFRAME1 Da

Re: [R] Subset a datafram according to time

2012-02-09 Thread MacQueen, Don
(apologies in advance for the stupid line-wrapping that I expect my email software to force upon us) If I understand correctly what you want, I would (1) in both data frames, combine date and time into a single column (variable) that is class POSIXct (2) use the merge() function This assumes th