Description Usage Arguments Value Examples
Methods to work with Relations.
getRelations
gets a Relations. Contains the papers that relate the
given entities with the relating sentences.
1 2 3 4 5 6 | "methods-Relations"(papers, entities)
getRelations(papers, entities)
## S4 method for signature 'list,character'
getRelations(papers, entities)
|
papers |
a list of Paper objects to search for relations. |
entities |
a character vector of entities to query for. |
Relations objects.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | ## Create a PaperDownloader to query for two entities relations
entities <- c('terminal differentiation', 'basal-like');
pprDldr <- PaperDownloader(entities=entities, papersDir='/tmp/pmcERR/');
## Get the number of papers possible to download, updating the pprDldr
pprDldr <- getPapersIds(pprDldr);
## Download the first 3 papers
pprDldr <- downloadPapers(pprDldr, n=3);
## Get the first 3 papers
papers <- getPapers(pprDldr, n=3);
relations <- getRelations(papers, entities);
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.