Hello, I searched the archives but could not come to a solution. I
have to two columns of information
t_start_cdt looks like:
t_start_cdt[1:4]
[1] 2003-07-09 11:02:25 2003-07-09 11:10:25 2003-07-09 11:30:25
[4] 2003-07-09 12:00:25
class(t_start_cdt)
[1] POSIXt POSIXlt
t_end_cdt looks like:
gotrout at gmail.com writes:
:
: Hello, I searched the archives but could not come to a solution. I
: have to two columns of information
:
: t_start_cdt looks like:
: t_start_cdt[1:4]
: [1] 2003-07-09 11:02:25 2003-07-09 11:10:25 2003-07-09 11:30:25
: [4] 2003-07-09 12:00:25
:
If a.lt and b.lt are the two vectors of POSIXlt dates then try
converting each to POSIXct and unclassing to make each numeric.
Take the mean of the two numeric vectors and convert them back to
I see. I'm a little confused with the use of class/unclass versus
as.XX. For example, instead of
On Tue, 5 Oct 2004 [EMAIL PROTECTED] (but with no name nor signature)
wrote:
Quoting someone without credit (and therefore in breach of their
copyright)
If a.lt and b.lt are the two vectors of POSIXlt dates then try
converting each to POSIXct and unclassing to make each numeric.
Take the
My apology for not properly quoting someone.
Let me amend my original email. In R version 1.8.1, if I have two
objects that look like:
t.start.cdt[1:4]
[1] 2003-07-09 11:02:25 2003-07-09 11:10:25 2003-07-09 11:30:25
[4] 2003-07-09 12:00:25
class(t.start.cdt)
[1] POSIXt  POSIXlt
Prof Brian Ripley [EMAIL PROTECTED] writes:
: If a.lt and b.lt are the two vectors of POSIXlt dates then try
: converting each to POSIXct and unclassing to make each numeric.
: Take the mean of the two numeric vectors and convert them back to
:
: I see. I'm a little confused with the use