Skip to content

Commit

Permalink
git
Browse files Browse the repository at this point in the history
  • Loading branch information
jinseob2kim committed Feb 20, 2022
1 parent 47f872f commit 8fe051b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion code/datatable-3-CCI.R
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
## Calculate CCI: based previous records
library(parallel)

source("code/inclusion.R")
source("code/datatable-2-inclusion.R")
data.asd ## Inclusion data

code.cci <- list(
Expand Down
5 changes: 2 additions & 3 deletions code/datatable-4-prevdrug.R
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,8 @@ code.drug <- list(


info.prevmed <- mclapply(code.drug, function(x){
merge(data.cci,
merge(data.asd,
m60[GNL_NM_CD %in% x][order(MDCARE_STRT_DT), .SD[1], keyby = "RN_INDI"][, .(RN_INDI, inidate = MDCARE_STRT_DT)],
by = "RN_INDI", all.x = T)[, ev := as.integer(Indexdate > as.Date(as.character(inidate), format = "%Y%m%d"))][, ev := ifelse(is.na(ev), 0, ev)][]$ev
}, mc.cores = 3) %>% do.call(cbind, .)
colnames(info.prevmed) <- paste0("Prev_", names(code.drug))

colnames(info.prevmed) <- paste0("Prev_", names(code.drug))
3 changes: 3 additions & 0 deletions code/github.R
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ usethis::git_sitrep()
# ----------------------------------------------------------------------------

### 6. Permanent saving
system("git config --global credential.helper manager") # Windows
system("git config --global credential.helper osxkeychain") # MacOS
system("git config --global credential.helper store") # Linux


## THAT'S IT!

0 comments on commit 8fe051b

Please sign in to comment.