Hi, I tried to attach these files before as .csv and they did not go through.. This time they are .txt files.. I am trying to get the attached following two timeseries (these are small subsets of the whole thing) into R so I can merge them using zoo.
tmp <- read.table("baltimore.csv", sep = " ") ##This is timeseries 2 z <- zoo(tmp[, 2:20], as.Date(as.character(tmp[, 1]), format = "%y %m %d")) tmp1 <- read.table("baltimorefludata.csv", sep = " ") ##This is timeseries 1 z2 <- zoo(tmp[,2], as.Date(tmp[, 1]), format = "%m %d %y")) R is not recognizing Date or YEARMODA as dates..Any suggestions on what I am doing wrong or how to fix it would be greatly appreciated!!! Sincerely, tom Thomas Heiman, PhD Info Systems Eng, Sr The MITRE Corporation | Center for Enterprise Modernization Office: 703-983-2951 | thei...@mitre.org<mailto:thei...@mitre.org> [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Date Count 9/28/2003 1505 10/5/2003 1535 10/12/2003 1549 10/19/2003 1466 10/26/2003 1460 11/2/2003 1501 11/9/2003 1456 11/16/2003 1806 11/23/2003 2466 11/30/2003 4309 12/7/2003 7490 12/14/2003 9428 12/21/2003 10362
YEARMODA TEMP DEWP SLP STP VISIB WDSP MXSPD GUST MAX MIN PRCP SNDP FRSHTT 20030928 68 24 58.6 24 1008 24 1002.5 24 8.5 24 5.7 24 15.9 25.1 81 59 0.55G 999.9 110010 20030929 57.7 24 47.7 24 1014 24 1008.4 24 9.9 24 8.3 24 15.9 21 72 50 0.03G 999.9 10000 20030930 53.7 24 42 24 1023.7 24 1018 24 9.9 24 4.7 24 10.1 999.9 66.9 43 0.00G 999.9 0 20031001 54.7 24 45.7 24 1022.3 24 1016.5 23 10 24 1.8 24 5.1 999.9 66.9 43 0.00D 999.9 10000 20031002 52 24 37.4 24 1019.8 24 1014.1 24 9.9 24 3.9 24 12 999.9 61 44.1 0.00D 999.9 0 20031003 49 24 32.5 24 1022.5 24 1016.7 24 9.9 24 2.6 24 8 999.9 62.1 37.9 0.00D 999.9 100000 20031004 53.3 24 43.6 24 1012.6 24 1006.9 24 9.9 24 3.1 24 8.9 999.9 69.1 37.9 0.01D 999.9 10000 20031005 54.6 24 40.2 24 1015.4 24 1009.7 24 9.9 24 4.2 24 10.1 20 69.1 45 0.00C 999.9 0 20031006 56.6 24 42.4 24 1018.9 24 1013.2 24 9.9 24 1.7 24 6 999.9 68 45 0.00D 999.9 0 20031007 58.4 24 45.3 24 1021.7 24 1016.1 24 9.9 24 2.6 24 6 999.9 70 46.9 0.00D 999.9 0 20031008 59.9 24 55.7 24 1023.1 24 1017.1 22 5 24 1 24 6 999.9 75.9 50 0.00D 999.9 100000 20031009 63.5 24 58.2 24 1022.7 24 1016.9 23 4.5 24 0.8 24 4.1 999.9 77 50 0.00D 999.9 100000 20031010 61.4 24 58.2 24 1020.7 24 1015 24 4 24 4 24 13 16.9 77 51.1 0.00D 999.9 100000
______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.