Ah I see. Thank you very much Gabor and Joshua. Yes that makes sense since in
C, alpha characters are represented in single quotes as to represent the
ASCII value hence 'M'. I would've never imagined the raw data would be so
lame like that though. Thanks again!
--
View this message in context:
h
On Tue, Mar 20, 2012 at 1:24 AM, knavero wrote:
> found a temporary fix (I'm sure it's redundant and not as elegant, but here
> it is):
>
> require(zoo)
> require(chron)
> setwd("/home/knavero/Desktop/")
>
> fmt = "%m/%d/%Y %H:%M"
> tail1 = function(x) tail(x, 1)
> rawData = read.zoo("weatherData.
update temporary fix:
http://pastebin.com/dzj0W89H
--
View this message in context:
http://r.789695.n4.nabble.com/Wrong-output-due-to-what-I-think-might-be-a-data-type-issue-zoo-read-in-problem-tp4487682p4488179.html
Sent from the R help mailing list archive at Nabble.com.
_
On Mon, Mar 19, 2012 at 11:34 PM, knavero wrote:
> Here's the small scale version of the R script:
>
> http://pastebin.com/sEYKv2Vv
>
> Here's the file that I'm reading in:
>
> http://r.789695.n4.nabble.com/file/n4487682/weatherData.txt weatherData.txt
>
> I apologize for the length of the data. I
found a temporary fix (I'm sure it's redundant and not as elegant, but here
it is):
require(zoo)
require(chron)
setwd("/home/knavero/Desktop/")
fmt = "%m/%d/%Y %H:%M"
tail1 = function(x) tail(x, 1)
rawData = read.zoo("weatherData.txt", header = T, FUN = as.chron,
format = fmt, sep = "\t", aggr
Here's the small scale version of the R script:
http://pastebin.com/sEYKv2Vv
Here's the file that I'm reading in:
http://r.789695.n4.nabble.com/file/n4487682/weatherData.txt weatherData.txt
I apologize for the length of the data. I tried to cut it down to 12 lines,
however, it wasn't reproduci
6 matches
Mail list logo