Re: [R] histogram for time with format hh:mm

2009-06-17 Thread Allan Engelhardt
On 18/06/09 07:34, Shreyasee wrote: Hi, The dataset has four time variables. Each variable has data in "1/6/2006 12:58:55 PM" format. I applied the subtraction function (=E2-D2) for calculating difference between variable1 and variable2 for each record. I copied those values and pasted in anot

Re: [R] histogram for time with format hh:mm

2009-06-17 Thread Shreyasee
Hi, The dataset has four time variables. Each variable has data in "1/6/2006 12:58:55 PM" format. I applied the subtraction function (=E2-D2) for calculating difference between variable1 and variable2 for each record. I copied those values and pasted in another column using "Paste special -> valu

Re: [R] histogram for time with format hh:mm

2009-06-17 Thread Allan Engelhardt
On 18/06/09 06:38, Shreyasee wrote: Hi, I have a dataset and calculated the time difference between two time variables. The output is somewhat like *"1/29/2324 1:57:39 AM".* That is not a time difference you have calculated. (x<-difftime("2009-12-31 12:00","2009-01-01 08:45")) # Time diff

[R] histogram for time with format hh:mm

2009-06-17 Thread Shreyasee
Hi, I have a dataset and calculated the time difference between two time variables. The output is somewhat like *"1/29/2324 1:57:39 AM".* I want to plot a histogram for this variable. When I gave *hist()* command it returned an error saying *"Error in hist.default(num) : 'x' must be numeric"* Can