Re: [R] coordinates from locator function in POSIXct format

2011-07-29 Thread jim holtman
I keep the following function handy so that I can change the numeric value from POSIXct back to POSIXct; I tend to keep the numeric in matrices since it allows faster operations in some cases. This just puts the appropriate classes on the object; quicker than using as.POSIXct(z, origin="1970-01-01

Re: [R] coordinates from locator function in POSIXct format

2011-07-29 Thread cristabel.duran
Thanks David and Janis, now the result is logic! have a nice WE, Cristabel. On 07/29/2011 06:32 PM, David Winsemius wrote: On Jul 29, 2011, at 12:21 PM, cristabel.duran wrote: Hi Janis, thank you for you answer. Actually already I did exactly what you said. However, when I convert the num

Re: [R] coordinates from locator function in POSIXct format

2011-07-29 Thread David Winsemius
On Jul 29, 2011, at 12:21 PM, cristabel.duran wrote: Hi Janis, thank you for you answer. Actually already I did exactly what you said. However, when I convert the number of "seconds" from the first measurement (some day in July 2010) then a I get a date in the year 2050 which is impossib

Re: [R] coordinates from locator function in POSIXct format

2011-07-29 Thread cristabel.duran
Hi Janis, thank you for you answer. Actually already I did exactly what you said. However, when I convert the number of "seconds" from the first measurement (some day in July 2010) then a I get a date in the year 2050 which is impossible. The latest date possible is 29March2011. my value in

Re: [R] coordinates from locator function in POSIXct format

2011-07-29 Thread Jannis
Well,if you would have had a look at ?POSIXct the documentation would have given you quite a comprehensive explanation of the meaning of the values of your time vector as they are the values these POSIXct values are actually stored in (they are seconds since 1970-01-01). Additionally you would

[R] coordinates from locator function in POSIXct format

2011-07-29 Thread cristabel.duran
Dear R-list, I have a plot with y-axis corresponding to wind measurments and x-axis with date-time information. When I want to identify some extrem wind events in the wind-curve, I use locator() to get the exact date-information, by clicking in the points in graph I´m interested in. I get in the R