Re: [R] Summarizing data containing data/time information (as factor)

2012-09-18 Thread arun
__ From: HJ YAN To: arun ; David Winsemius Cc: r-help@r-project.org Sent: Tuesday, September 18, 2012 7:21 AM Subject: Re: [R] Summarizing data containing data/time information (as factor) Dear Arun and David For the same dataset I sent in my previous email (I am attaching my data 

Re: [R] Summarizing data containing data/time information (as factor)

2012-09-06 Thread arun
-project.org; dwinsem...@comcast.net Sent: Thursday, September 6, 2012 5:02 AM Subject: Re: [R] Summarizing data containing data/time information (as factor) Hi Arun and David Thanks a lot for your reply and sorry for sending the csv file.  (p.s. I can download my csv file from the emai

Re: [R] Summarizing data containing data/time information (as factor)

2012-09-06 Thread arun
atch all the contents before "-" in dat2$date.  I used brackets (.*) for the second and third so that it could be select those specifically and use it #as replacement \\1 and \\2 inside the second " ". #If you want to learn regular expressions, there are a lot of resources on the n

Re: [R] Summarizing data containing data/time information (as factor)

2012-09-06 Thread HJ YAN
.03, 0.04, 0.04, 0.04, 0.04, 0.03, 0.04, 0.04, 0.03, 0.04, 0.03, 0.04, 0.04, 0.03, 0.03, 0.04, 0.04, 0.04, 0.04, 0.03, 0.03, 0.04, 0.04, 0.04, 0.04, 0.04, 0.04, 0.04, 0.04, 0.04, 0.04, 0.04, 0.04, 0.04, 0.04, 0.04, 0.04, 0.04, 0.04, 0.04, 0.04, 0.04, 0.04, 0.04, 0.04, 0.04, 0.04, 0.04, 0.04, 0.

Re: [R] Summarizing data containing data/time information (as factor)

2012-09-06 Thread David Winsemius
On Sep 6, 2012, at 2:02 AM, HJ YAN wrote: > Hi Arun and David > > > Thanks a lot for your reply and sorry for sending the csv file. (p.s. I can > download my csv file from the email I sent, so I'm not sure why this doesn`t > work for other users...) I already explained why. You did not read

Re: [R] Summarizing data containing data/time information (as factor)

2012-09-05 Thread arun
Hi, I couldn't find any attached data.  Could you dput() the data? A.K. - Original Message - From: HJ YAN To: r-help@r-project.org Cc: Sent: Wednesday, September 5, 2012 7:57 PM Subject: [R] Summarizing data containing data/time information (as factor) Dear R user I want to c

Re: [R] Summarizing data containing data/time information (as factor)

2012-09-05 Thread David Winsemius
On Sep 5, 2012, at 4:57 PM, HJ YAN wrote: > Dear R user > > I want to create a table (as below) to summarize the attached data > (Test.csv, which can be read into R by using 'read.csv(Test.csv, header=F)' > ), Unfortunately you did not read theinformation about posting attachments carefully en

[R] Summarizing data containing data/time information (as factor)

2012-09-05 Thread HJ YAN
Dear R user I want to create a table (as below) to summarize the attached data (Test.csv, which can be read into R by using 'read.csv(Test.csv, header=F)' ), to indicate the day that there are any data available, e.g.value=1 if there are any data available for that day, otherwise value=0.