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.
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
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
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
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
5 matches
Mail list logo