Hi all, I have been able to solve (I think) the second question: newdt[, init := c( round(difftime(start[1], bday[1])/365.25,1) , round(difftime(dsum[1:(.N-1)],bday[1:(.N-1)])/365.25,1) )][] # [] is to print the result
_______________________________________________ datatable-help mailing list [email protected] https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/datatable-help
