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
______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.