Re: [R] writing dates to a file

From: David Winsemius <dwinsemius_at_comcast.net>
Date: Tue, 24 May 2011 15:15:12 -0400

On May 24, 2011, at 2:34 PM, Heiman, Thomas J. wrote:

> Hi,
>
> I have attached the data files to this note. I use this code:
>
> library(zoo)
> z1 <- read.zoo("baltimorefludata.txt", format = "%m/%d/%Y", header =
> TRUE)
> z2 <- read.zoo("baltimorew.txt", format = "%Y%m%d", header = TRUE)
>
> z3<-merge(z1,z2)
>
> write.table(z3, "fluweatherdata_baltimore2.txt", sep="\t")
>
> R is writing the other data to the file but not the dates... Is
> there a way to also write the dates to the file? Thank you!!

?write.zoo

-- 

David Winsemius, MD
West Hartford, CT

______________________________________________
R-help_at_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.
Received on Tue 24 May 2011 - 19:17:10 GMT

This quarter's messages: by month, or sorted: [ by date ] [ by thread ] [ by subject ] [ by author ]

All messages

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 24 May 2011 - 19:30:09 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive