db_get_cptevents: Simple table specific reference function for the CPTEVENTS...

Description Usage Arguments Value See Also Examples

View source: R/table_data.R

Description

Simple table specific reference function for the CPTEVENTS table data

Usage

1

Arguments

con

A DBIConnection object, as returned by DBI::dbConnect().

...

an optional where parameter with a character string representing a SQL WHERE clause.

Value

a tibble with the results.

See Also

For an overview of the MIMIC-III database, see: Overview of the MIMIC-III data. For details on the CPTEVENTS table, see: The cptevents table.

Examples

1
2
3
4
5
6
7
con <- RSQLite::dbConnect(RSQLite::SQLite(), ":memory:")
ex <- tibble::tibble(SUBJECT_ID = c(10006, 10011))
RSQLite::dbWriteTable(con, "CPTEVENTS", ex)

td <- db_get_cptevents(con, where = "WHERE SUBJECT_ID = 10006")

RSQLite::dbDisconnect(con)

hdshea/MIMIC3db documentation built on Dec. 20, 2021, 3:44 p.m.