new function replace_char added 2022-03-02 10:05:22

This commit is contained in:
AG Damsbo 2022-03-02 10:05:22 +01:00
parent 15824fa01c
commit 3425590553
3 changed files with 3 additions and 1 deletions

View File

@ -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 <agdamsbo@pm.me>
Maintainer: Andreas Gammelgaard Damsbo <agdamsbo@pm.me>

View File

@ -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)

View File

@ -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")
}