convertConceptSetExpressionToDataFrame: convert a concept set expression R list object into a data...

View source: R/ConvertConceptSetExpressionToDataFrame.R

convertConceptSetExpressionToDataFrameR Documentation

convert a concept set expression R list object into a data frame object

Description

convert a concept set expression R list object into a data frame object

Usage

convertConceptSetExpressionToDataFrame(
  conceptSetExpression,
  updateVocabularyFields = FALSE,
  connection = NULL,
  connectionDetails = NULL,
  tempEmulationSchema = getOption("sqlRenderTempEmulationSchema"),
  vocabularyDatabaseSchema = NULL
)

Arguments

conceptSetExpression

An R-object (list) with expression of the concept set.

updateVocabularyFields

Do you want to update the details about concepts from the vocabulary tables such as domain, vocabulary, concept name? If yes, then connection or connectionDetails to a remote db with OMOP vocabulary tables is needed.

connection

An object of type connection as created using the connect function in the DatabaseConnector package. Can be left NULL if connectionDetails is provided, in which case a new connection will be opened at the start of the function, and closed when the function finishes.

connectionDetails

An object of type connectionDetails as created using the createConnectionDetails function in the DatabaseConnector package. Can be left NULL if connection is provided.

tempEmulationSchema

Some database platforms like Oracle and Impala do not truly support temp tables. To emulate temp tables, provide a schema with write privileges where temp tables can be created.

vocabularyDatabaseSchema

The schema name of containing the vocabulary tables.

Value

Returns a tibble data frame.


OHDSI/ConceptSetDiagnostics documentation built on Feb. 26, 2023, 1:31 a.m.