Re: [R] Trying to merge new data set to bottom of old data set. Both are zoo objects.

2012-04-04 Thread knavero
Okay, will do. Thanks for all the handy advice Gabor. Ugh, it's such a stupid bug once I actually know what is going on. I need to go over my Unix date/time format specifiers, and I'll probably use the rep function to simplify and reducing the amount of code. A lot of that is definitely new to me.

Re: [R] Trying to merge new data set to bottom of old data set. Both are zoo objects.

2012-04-04 Thread Gabor Grothendieck
On Wed, Apr 4, 2012 at 1:47 AM, knavero wrote: > Here's a case where it doesn't work. Again, the problem is that when I use > the rbind or concatenate functions, the 2012 data set seems to go ahead of > the 2010 and 2011 portions of the data set. The problem seems dependent on > the text files I r

Re: [R] Trying to merge new data set to bottom of old data set. Both are zoo objects.

2012-04-04 Thread Ashish Agarwal
It is unclear what the problem is. Does following code solve your append problem? fmt = "%m/%d/%Y %H:%M" fname <- "new.txt" #records = 2904 newfile <- read.csv(fname, header = TRUE, sep = ",", skip=0, colClasses = c(rep("character",2), rep("numeric", 16)) ) newfile.comb <- cbind(newfile[2], newfil

Re: [R] Trying to merge new data set to bottom of old data set. Both are zoo objects.

2012-04-03 Thread knavero
Here's a case where it doesn't work. Again, the problem is that when I use the rbind or concatenate functions, the 2012 data set seems to go ahead of the 2010 and 2011 portions of the data set. The problem seems dependent on the text files I read in: http://r.789695.n4.nabble.com/file/n4531011/old

[R] Trying to merge new data set to bottom of old data set. Both are zoo objects.

2012-04-03 Thread knavero
Here is the data I'm working with: http://r.789695.n4.nabble.com/file/n4530888/new.txt new.txt http://r.789695.n4.nabble.com/file/n4530888/old.txt old.txt My code is here: http://pastebin.com/9jjs6Ahr I'm looking for away to simply attach the new.txt to the bottom of old.txt through R, else