[R] time segments intersection
[Ricardo Rodriguez] Your XEN ICT Team
webmaster at xen.net
Sun Oct 5 01:06:52 CEST 2008
Thanks.
Gabor Grothendieck wrote:
> Assuming the first row is the comparison row convert
> to Date class and calculate:
>
> DF[] <- lapply(DF, as.Date, format = "%Y/%m/%d")
> pmin(DF[[2]], DF[1, 2]) - pmax(DF[[1]], DF[1,1])
>
> Please be explicit next time in formulating your queries
> as requested in the last line of every message to r-help.
Gabor, I've able to be explicit only after reconsidering my original
question and the structure of the data after reading your previous
replies. Thanks for your time.
Best regards,
Ricardo
--
Ricardo Rodríguez
Your XEN ICT Team
More information about the R-help
mailing list