Commit 1e7d5889 authored by Ashley Stewart's avatar Ashley Stewart 💃
Browse files

Merge branch 'dana_branch' into 'master'

Get Cogs Function - Cogs DSR updated

See merge request aspree/aspree-r-package!45
parents b1ef2f61 7ea125d8
......@@ -223,7 +223,7 @@ GetSubstudyCogs <- function(con, filterVisitTimes = NA, excludeOnSNORE = TRUE) {
C_CT2NumErrs = C_CT2NoErrs
) %>% collect(
) %>% mutate(
CogTests_DSR = ceiling(difftime(as.POSIXct(visitDate, tz="Australia/Melbourne", offset=1), as.Date(RandDt, tz="Australia/Melbourne", offset = 1), units ="days"))
CogTests_DSR = ceiling(difftime(as.POSIXct(visitDate, tz="Australia/Melbourne", offset=1), as.POSIXct(RandDt, tz="Australia/Melbourne", offset = 1), units ="days"))
) %>% select(-c("visitDate", "RandDt"))
if (excludeOnSNORE) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment