dbc <- nodbi::src_sqlite(
dbname = system.file("extdata", "demo.sqlite", package = "ctrdata"),
collection = "my_trials",
flags = RSQLite::SQLITE_RO)
df <- dbGetFieldsIntoDf(
fields = c(
"protocolSection.eligibilityModule.healthyVolunteers",
"f31_healthy_volunteers",
"eligibility.healthy_volunteers"
),
con = dbc
)
table(
dfMergeVariablesRelevel(
df = df,
colnames = 'matches("healthy")'
))
Run the code above in your browser using DataLab