title: Computing age today from date of birth variable (R)
body: <p>I have a dataframe with information on date of birth by individual id.</p>
  <pre><code>mydf &lt;- data.frame(id=c(1,2),
                     dtbirth=as.Date(c(&quot;2012-01-01&quot;,&quot;2013-04-01&quot;)))
  </code></pre>
  <p>I would like to compute the age of the individuals as of today. The code below seems to work but outputs &quot;days&quot; to the new variable <code>age</code></p>
  <pre><code>mydf %&gt;%
    mutate(age=floor((today()-dtbirth)/365))
  </code></pre>