Skip to content

Commit

Permalink
Preserve data.frame format
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonysena committed Jun 28, 2024
1 parent 667f5c8 commit c779ca3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion R/CohortCount.R
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ getCohortCounts <- function(connectionDetails = NULL,
}
counts <- merge(
x = counts,
y = cohortDefinitionSet[cohortDefinitionSet$cohortId %in% cohortIds, ],
y = cohortDefinitionSet[cohortDefinitionSet$cohortId %in% cohortIds, , drop = FALSE],
by = "cohortId",
all.y = TRUE
)
Expand Down
2 changes: 1 addition & 1 deletion R/RunCohortGeneration.R
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ generateAndExportNegativeControls <- function(connection,
cohortDatabaseSchema = cohortDatabaseSchema,
cohortTable = cohortTableNames$cohortTable,
databaseId = databaseId,
cohortDefinitionSet = negativeControlOutcomeCohortSet[,c("cohortId")]
cohortDefinitionSet = negativeControlOutcomeCohortSet[,c("cohortId"), drop = FALSE]
)
}

Expand Down

0 comments on commit c779ca3

Please sign in to comment.