Browse Source

Clear_modifier() function added

master
Maxime Wack 7 years ago
parent
commit
68b62b9e74
1 changed files with 17 additions and 0 deletions
  1. +17
    -0
      R/demodata.R

+ 17
- 0
R/demodata.R View File

@@ -1,3 +1,20 @@
#' Clear the default modifiers
#'
#' Clear the default concepts in concept_dimension
#'
#' @param host The host to connect to
#' @param admin The admin account for the PostgreSQL database
#' @param pass the password for the admin account
#' @export
clear_modifier <- function(host = "localhost", admin, pass)
{
demodata <- RPostgreSQL::dbConnect(RPostgreSQL::PostgreSQL(), host = host, dbname = "i2b2demodata", user = admin, password = pass)

RPostgreSQL::dbGetQuery(demodata, "DELETE FROM modifier_dimension;")

RPostgreSQL::dbDisconnect(demodata)
}

#' Clear the default concepts
#'
#' Clear the default concepts in concept_dimension


Loading…
Cancel
Save