create_edge_list_table: Create edge list table if not found.

Description Usage Arguments Details Value

View source: R/create_edge_list_table.R

Description

'create_edge_list_table' create edge list table in MySQL.

Usage

1
2
create_edge_list_table(con_mysql, tableName = "EdgeList",
  sourceName = "Source", targetName = "Target")

Arguments

con_mysql

a MySQL connection

tableName

string with the name of the table used to store the edge list, defaulting to 'EdgeList'

sourceName

string with the name of the column used to store the source, defaulting to 'Source'

targetName

string with the name of the column used to store the target, defaulting to 'Target'

Details

Default values for this table is: tableName = "EdgeList", sourceName = "Source", targetName = "Target" MySQL statment: CREATE TABLE Edgelist_date ( SourcePMID INT, Target INT, INDEX index_target(Target));

Value

a scalar numeric that specifies the number of rows affected by the statement. An error is raised when issuing a statement over a closed or invalid connection, if the syntax of the statement is invalid, or if the statement is not a non-NA string.


gdancik/pmc2nc documentation built on May 5, 2019, 7:09 a.m.