search for: t_mean_cdt

Displaying 1 result from an estimated 1 matches for "t_mean_cdt".

2004 Oct 05
2
correct my method of estimating mean of two POSIXlt data frames
...ach "pair". For example, the mean of (t_start_cdt[1] and t_end_cdt[1]). The only way I could do this is: hi <- cbind(as.matrix(as.POSIXct(t_start_cdt)), as.matrix(as.POSIXct(t_end_cdt))) hi <- apply(hi, MARGIN=1, FUN=mean) class(hi) <- c("POSIXt", "POSIXct") t_mean_cdt <- as.POSIXlt(hi) rm(hi) What am I missing conceptually about POSIXlt, and what is the better method? thanks, Mike