create_database: create_database

Description Usage Arguments Value Examples

View source: R/01_create_datebase_for_given_word.R

Description

Create a new table with abstracts which include search word. To correct work this function needs 2 tables in PostgreSQL :
library - word_id:INTEGER, word:TEXT
abstracts - pmid:INTEGER, words:INTEGER[]

Usage

1
create_database(word, lemma_table = "new_table", json)

Arguments

word

Character. Word which is analyzing.Its nesesary to add sufix after "_" with part of speech tag. List of all tag and their expands is available on site: http://www.ling.upenn.edu/courses/Fall_2003/ling001/penn_treebank_pos.html.

lemma_table

Character. Name of table which will be created.

json

"json varible" or json file. JSON need to indlude:
dbname Character. Database name.
host Character. Host.
port Numeric. Port number.

And could indlude:

user Character. PostgreSQL username.
password Character. PostgreSQL user's password.

Value

There is no output.
This function create table in postgres with abstracts which include word.

Examples

1
2
3
4
## Not run: 
create_database("cancer_NN")

## End(Not run)

darsoo/KAROLA documentation built on May 14, 2019, 8:42 a.m.