hzi-braunschweig / SORMAS-Stats-next-gen

SORMAS-Stats contain functions to analyze and visualize surveillance data collected by SORMAS.
GNU General Public License v3.0
4 stars 6 forks source link

[#145] Converted date class to numeric before computing age #153

Closed bernardsilenou closed 2 years ago

bernardsilenou commented 2 years ago

This change resolve this error:


Error in dplyr::mutate(., age = floor(as.numeric(round((reportdate - date_of_birth)/365))), : Problem while computing `age = floor(as.numeric(round((reportdate - date_of_birth)/365)))`. Caused by error in `Ops.Date()`: ! / not defined for "Date" objects
--