Re: [R] Problem with merging two zoo objects

2010-10-15 Thread Megh Dal
do not work if the index entries in ‘order.by’ are not unique In either case, I am missing the "time" component. Where I am going wrong? Thanks, --- On Sat, 10/16/10, Gabor Grothendieck wrote: > From: Gabor Grothendieck > Subject: Re: [R] Problem with merging two zoo obj

Re: [R] Problem with merging two zoo objects

2010-10-15 Thread Megh Dal
ects do not work if the index entries in ‘order.by’ are not unique Is it a bug or a rule that for any function, placing of it's arguments matter? Thanks, --- On Sat, 10/16/10, Megh Dal wrote: > From: Megh Dal > Subject: Re: [R] Problem with merging two zoo objects > To: &

Re: [R] Problem with merging two zoo objects

2010-10-15 Thread Gabor Grothendieck
On Fri, Oct 15, 2010 at 9:56 PM, Megh Dal wrote: > However I have noticed a strange thing. Placing of "tz = """ matters here: > >> head(read.zoo("f:/dat1.txt", sep = ",", header = TRUE, format =  "%m/%d/%Y >> %H:%M:%S"), tz = "") Your tz argument has been passed as an argument of head. You want

Re: [R] Problem with merging two zoo objects

2010-10-15 Thread Gabor Grothendieck
On Fri, Oct 15, 2010 at 4:27 PM, Megh wrote: > > Thanks Gabor for pointing to my old version. However I got one more question > why the argument tz="" is sitting there? As you are not passing any explicit It would otherwise assume "Date" class. > str(read.zoo(file="dal1.csv", header=TRUE, sep=",

Re: [R] Problem with merging two zoo objects

2010-10-15 Thread Megh
Thanks Gabor for pointing to my old version. However I got one more question why the argument tz="" is sitting there? As you are not passing any explicit value for that, I am assuming it is redundant. Without any tz argument, I got following: head(read.zoo(file="f:/dat1.txt", header=T, sep=",",

Re: [R] Problem with merging two zoo objects

2010-10-15 Thread Gabor Grothendieck
On Fri, Oct 15, 2010 at 3:22 PM, Megh Dal wrote: > Hi Gabor, please see the attached files which is in text format. I have > opened them on excel then, used clipboard to load them into R. Still really > unclear what to do. > > Also can you please elaborate this term "index = list(1, 2), FUN = >

Re: [R] Problem with merging two zoo objects

2010-10-15 Thread Achim Zeileis
s 1 and 2). Hence, he specified index = list(1, 2) and then provided a function that would return a POSIXct object when called with two arguments FUN(column1, column2) hth, Z --- On Sat, 10/16/10, Gabor Grothendieck wrote: From: Gabor Grothendieck Subject: Re: [R] Problem with merging two

Re: [R] Problem with merging two zoo objects

2010-10-15 Thread Megh
I have compared "dat11" and "x" using str() function, however did not find drastic difference: > str(dat11) ‘zoo’ series from 2010-10-15 13:43:54 to 2010-10-15 13:49:51 Data: num [1:7, 1:4] 73.8 73.8 73.8 73.8 73.8 73.8 73.7 73.8 73.8 73.8 ... - attr(*, "dimnames")=List of 2 ..$ : chr [1:7]

Re: [R] Problem with merging two zoo objects

2010-10-15 Thread Megh Dal
r previous file? In help, it is given that:"If FUN is specified then read.zoo calls FUN with the index as the first argument". I really could not connect your syntax with help. --- On Sat, 10/16/10, Gabor Grothendieck wrote: > From: Gabor Grothendieck > Subject: Re: [R] Problem wi

Re: [R] Problem with merging two zoo objects

2010-10-15 Thread Gabor Grothendieck
On Fri, Oct 15, 2010 at 2:20 PM, Megh Dal wrote: > Dear all, I have following 2 zoo objects. However when I try to merge those 2 > objects into one, nothing is coming as intended. Please see below the objects > as well as the merged object: > > >> dat11 >                      V2   V3   V4   V5 >

Re: [R] Problem with merging two zoo objects

2010-10-15 Thread Achim Zeileis
On Fri, 15 Oct 2010, Megh Dal wrote: Dear all, I have following 2 zoo objects. However when I try to merge those 2 objects into one, nothing is coming as intended. Please see below the objects as well as the merged object: dat11 V2 V3 V4 V5 2010-10-15 13:43:54

Re: [R] Problem with merging two zoo objects

2010-10-15 Thread Dieter Menne
Megh wrote: > > Dear all, I have following 2 zoo objects. However when I try to merge > those 2 objects into one, nothing is coming as intended. Please see below > the objects as well as the merged object: > > >> merge(dat11, dat22) > V2.dat11 V3.dat11 V4.dat11 V5.dat11

[R] Problem with merging two zoo objects

2010-10-15 Thread Megh Dal
Dear all, I have following 2 zoo objects. However when I try to merge those 2 objects into one, nothing is coming as intended. Please see below the objects as well as the merged object: > dat11 V2 V3 V4 V5 2010-10-15 13:43:54 73.8 73.8 73.8 73.8 2010-10-15 13:44:15 7