Description Usage Arguments Details Value See Also Examples
View source: R/get_edge_list_db.R
retrieves an edge list from the database with the provided list of target PMIDs.
1 | get_edge_list_db(conMysql, pmids, tableName = "EdgeList")
|
conMysql |
a MySQL connection |
pmids |
list of target pmids used to search database. |
tableName |
string with the name of the table used to store the edge list, defaulting to 'EdgeList' |
'get_edge_list_db' will retrieve an edge list from database with the provided list of target PMIDs. An error is generated if the table does not exist in the database.
returns the edge list as a data.frame
create_edge_list_table
for edge list table structure
1 2 3 4 5 6 | ## Not run:
# This will look for PMIDs in 'x' from the DB and get the Source and Target
x <- c(21876761, 311, 29463753, 21876726)
res <- get_edge_list_db(conMysql, x)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.