extract: Extract

Description Usage Arguments Details Value Author(s)

Description

Extract data from PubMed files.

Usage

1
2
## extract from pubmed file
extract_pubmed(file, what = c("TI", "AUTH", "SRC", "YEAR", "AB"))

Arguments

file

A character string giving the name of the file to read.

what

A character vector giving the column name(s) that need to be read. Should be one or more of c("TI", "AUTH", "SRC", "YEAR", "AB"), referring to Title, Author, Source, Year, and Abstract.

Details

When doing a PubMed search, click Send to: in the top right part of the screen, then select Choose Destination: File and Format: MEDLINE. This will generate a .txt-file that can be saved on your computer. extract_pubmed can now be used to extract Title, (first) Author, Source (=journal), Year and Abstract from this file. Use write_cb to copy these data to your clipboard and paste them in Excel.

Value

A character matrix containing the requested data.

Author(s)

Brecht.Devleesschauwer@UGent.be


brechtdv/bd documentation built on June 19, 2019, 8:53 p.m.