Skip to content

Commit

Permalink
Fixing table - result matching issue
Browse files Browse the repository at this point in the history
  • Loading branch information
schuemie committed May 29, 2019
1 parent b1711ec commit a8424b4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion TicagrelorVsClopidogrel/server.R
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ shinyServer(function(input, output, session) {
outcomeIds = outcomeId,
databaseIds = databaseIds,
analysisIds = analysisIds)
results <- results[order(results$analysisId), ]
if (blind) {
results$rr <- rep(NA, nrow(results))
results$ci95Ub <- rep(NA, nrow(results))
Expand Down Expand Up @@ -113,7 +114,7 @@ shinyServer(function(input, output, session) {
if (is.null(table) || nrow(table) == 0) {
return(NULL)
}
table <- merge(table, cohortMethodAnalysis)
table$description <- cohortMethodAnalysis$description[match(table$analysisId, cohortMethodAnalysis$analysisId)]
table <- table[, mainColumns]
table$rr <- prettyHr(table$rr)
table$ci95Lb <- prettyHr(table$ci95Lb)
Expand Down

0 comments on commit a8424b4

Please sign in to comment.