Skip to content

Commit

Permalink
update multivis to 5/23/18
Browse files Browse the repository at this point in the history
  • Loading branch information
Trevor committed May 24, 2018
1 parent ac67092 commit 344cd94
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ export(udallCheckDataWide)
export(udallCleanREDCapDataWide)
export(udallCrosscheckEntries)
export(udallDemographicTable)
export(udallGetAnalyze)
export(udallProcessGnB)
export(udallReplaceMissing)
export(udallTimestamp)
2 changes: 1 addition & 1 deletion R/udallCleanREDCapDataWide.R
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ udallCleanREDCapDataWide <- function(dat, visit = 1) {
# closest.colnames <- as.character(Codebook_PaNUC_2017_07_07$Stata_Variable_Name)


closest.colnames <- tolower(colnames(panuc_multivis_2018_03_30))
closest.colnames <- tolower(colnames(panuc_multivis_2018_05_23))
closest.colnames <- closest.colnames[closest.colnames != ""]
closest.colnames <- c("idnum",
closest.colnames[closest.colnames %in% colnames(dat)])
Expand Down
Binary file added data/panuc_multivis_2018_05_23.rda
Binary file not shown.
2 changes: 1 addition & 1 deletion getClosestVisits
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ cdat <- udallCleanREDCapDataWide(dat, visit = 1)
# Get the closest visits, comparing to the most recent multivis
## UPDATE THIS LINE WHEN NECESSARY
closest.visits <- getClosestACVisit(cdat,
multivis.df = panuc_multivis_2018_03_30)
multivis.df = panuc_multivis_2018_05_23)

# Get the numeric id from the PWAXX-XXXX string
idnum <- gsub("[^0-9]", "", closest.visits$summary_id)
Expand Down

0 comments on commit 344cd94

Please sign in to comment.