diff --git a/DESCRIPTION b/DESCRIPTION index 6322253..5617f7d 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,6 +1,6 @@ Package: daDoctoR Title: Functions For Health Research -Version: 0.21.17 +Version: 0.22.1 Year: 2021 Author: Andreas Gammelgaard Damsbo Maintainer: Andreas Gammelgaard Damsbo diff --git a/NAMESPACE b/NAMESPACE index 134f4c9..28b0c8a 100644 --- a/NAMESPACE +++ b/NAMESPACE @@ -34,6 +34,7 @@ export(rep_lm) export(rep_olr) export(rep_olr_sngl) export(rep_reg_cie) +export(replace_char) export(strobe_diff_bygroup) export(strobe_diff_byvar) export(strobe_diff_twodim) diff --git a/R/age_calc.R b/R/age_calc.R index 340b7f5..db0c818 100644 --- a/R/age_calc.R +++ b/R/age_calc.R @@ -16,6 +16,7 @@ age_calc<-function (dob, enddate = Sys.Date(), units = "years", precise = TRUE) ## Build upon the work of Jason P. Becker, as part of the eeptools { + if (!inherits(dob, "Date") | !inherits(enddate, "Date")) { stop("Both dob and enddate must be Date class objects") }