<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'><p abp="825">Hi all, </p><p abp="826"> </p><p abp="827">I have been able to solve (I think) the second question:</p><p abp="827"> </p><p abp="827">newdt[, init := c( round(difftime(start[1], bday[1])/365.25,1) , <br> round(difftime(dsum[1:(.N-1)],bday[1:(.N-1)])/365.25,1) )][] # [] is to print the result </p><p abp="827"> </p><p abp="827"> </p> </div></body>
</html>