Skip to content

Commit

Permalink
small cell filter added
Browse files Browse the repository at this point in the history
  • Loading branch information
vojtechhuser committed Feb 19, 2020
1 parent f22ba05 commit 26481bb
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
5 changes: 4 additions & 1 deletion R/StudySpecific.R
Original file line number Diff line number Diff line change
Expand Up @@ -510,10 +510,11 @@ GROUP BY o.stratum1_id, o.stratum2_id, o.total, o.min_value, o.max_value, o.avg_
#' @param connectionDetails connection
#' @param connectionDetails2 more study parameters
#' @param runViaAchilles flag that runs legacy analysis using Achilles measure (analysis)
#' @param exportThreshold removes rows that have fewer than specified events (default is 11)

#' @export
dashboardLabThresholds <- function(connectionDetails,
connectionDetails2,runViaAchilles=FALSE
connectionDetails2,runViaAchilles=FALSE,exportThreshold=11
){


Expand Down Expand Up @@ -569,6 +570,8 @@ dashboardLabThresholds <- function(connectionDetails,

#custom percentiles
b<-customMeasure(connectionDetails = connectionDetails,connectionDetails2 = connectionDetails2)
names(b) <- tolower(names(b))
b<-dplyr::filter(b, count_value>=exportThreshold)

#done separately for now, may be included later
writeLines(paste("--writing some output to export folder:",exportFolder))
Expand Down
2 changes: 2 additions & 0 deletions extras/CodeToRun.R
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ connectionDetails <- DatabaseConnector::createConnectionDetails(dbms = "postgres
user = "",
password = "")



cdmDatabaseSchema <-'main'
resultsDatabaseSchema <-'main' #at most sites this likely will not be the same as cdmDatabaseSchema
workFolder <- 'c:/temp/dqd' #this folder must exist (use forward slashes)
Expand Down
5 changes: 4 additions & 1 deletion man/dashboardLabThresholds.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 26481bb

Please sign in to comment.