Re: [R] need to delete by time, not date

2011-05-10 Thread Adele_Thompson
gt; Thanks for the help. > > -Original Message- > From: dwinsem...@comcast.net [mailto:dwinsem...@comcast.net] > Sent: Tuesday, May 10, 2011 10:19 AM > To: Thompson, Adele - adele_thomp...@cargill.com > Cc: r-help@r-project.org > Subject: Re: [R] need to delete by time, not date

Re: [R] need to delete by time, not date

2011-05-10 Thread David Winsemius
ginal Message- From: dwinsem...@comcast.net [mailto:dwinsem...@comcast.net] Sent: Tuesday, May 10, 2011 10:19 AM To: Thompson, Adele - adele_thomp...@cargill.com Cc: r-help@r-project.org Subject: Re: [R] need to delete by time, not date On May 10, 2011, at 11:06 AM, Schatzi wrote: I have a m

Re: [R] need to delete by time, not date

2011-05-10 Thread Adele_Thompson
t and other more complex classes. Thanks for the help. -Original Message- From: dwinsem...@comcast.net [mailto:dwinsem...@comcast.net] Sent: Tuesday, May 10, 2011 10:19 AM To: Thompson, Adele - adele_thomp...@cargill.com Cc: r-help@r-project.org Subject: Re: [R] need to delete by time, not

Re: [R] need to delete by time, not date

2011-05-10 Thread David Winsemius
On May 10, 2011, at 11:06 AM, Schatzi wrote: I have a matrix where one column has a date and another column has a time. I need to delete all times before 6am. I had combined the Date and Time column into DateTime. Mat1: Weight Date Time 7.6 04/28/11 09:03 8.4 04/29/11 03:11 8.6 04/29/

Re: [R] need to delete by time, not date

2011-05-10 Thread Adele_Thompson
: Tuesday, May 10, 2011 10:15 AM To: Thompson, Adele - adele_thomp...@cargill.com Cc: r-help@r-project.org Subject: Re: [R] need to delete by time, not date You may be happy using: strptime(paste(Date,Time,sep=" "),"%m/%d/%y %H:%M")$hour -- Clint Bowman

Re: [R] need to delete by time, not date

2011-05-10 Thread Clint Bowman
You may be happy using: strptime(paste(Date,Time,sep=" "),"%m/%d/%y %H:%M")$hour -- Clint BowmanINTERNET: cl...@ecy.wa.gov Air Quality Modeler INTERNET: cl...@math.utah.edu Department of Ecology VOICE: (360) 407-6815 PO Box 47600

[R] need to delete by time, not date

2011-05-10 Thread Schatzi
I have a matrix where one column has a date and another column has a time. I need to delete all times before 6am. I had combined the Date and Time column into DateTime. Mat1: Weight Date Time 7.6 04/28/11 09:03 8.4 04/29/11 03:11 8.6 04/29/11 05:32 8.6 04/29/11 09:53 1.4 05/01