Skip to content

Commit

Permalink
Add explicit matrix subsetting for data.table
Browse files Browse the repository at this point in the history
  • Loading branch information
keesvanbochove committed Oct 1, 2021
1 parent d3c7170 commit 873199c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/ResourceFiles.R
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ getCohortsToCreate <- function(cohortGroups = getCohortGroups()) {
cohorts <- data.frame()
for(i in 1:nrow(cohortGroups)) {
c <- data.table::fread(system.file(cohortGroups$fileName[i], package = packageName, mustWork = TRUE))
c <- c[c('name', 'atlasName', 'atlasId', 'cohortId')]
c <- c[,c('name', 'atlasName', 'atlasId', 'cohortId')]
c$cohortType <- cohortGroups$cohortGroup[i]
cohorts <- rbind(cohorts, c)
}
Expand Down

0 comments on commit 873199c

Please sign in to comment.