get_participants | R Documentation |
get_participants(db, lazy = FALSE)
db |
db A database connection, as created by |
lazy |
Whether to evaluate lazily using dbplyr. |
A data frame containing all participant_id
and study_id
.
# Create a database
db <- create_db(tempdir(), "mydb.db")
# Add some participants
DBI::dbExecute(db, "INSERT INTO Study VALUES('study1', 'data_format1')")
DBI::dbExecute(db, "INSERT INTO Participant VALUES('participant1', 'study1')")
# Get the participants
get_participants(db)
# Cleanup
close_db(db)
file.remove(file.path(tempdir(), "mydb.db"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.