read_pubmed {miRetrieve}R Documentation

Convert PubMed-file from PubMed into a data frame

Description

Convert PubMed-file from PubMed into a data frame.

Usage

read_pubmed(pubmed_file, topic = NULL)

Arguments

pubmed_file

PubMed-file as .txt, downloaded from PubMed.

topic

String. Optional. If provided, adds a "Topic" column containing topic.

Details

Convert an PubMed-file from PubMed into a data frame. The PubMed-file should contain PubMed-IDs, abstracts from research articles, abstract title, publication year, abstract language, and article type. The data frame created holds at least six columns, namely

If topic is provided, a "Topic" column is added, assigning all abstracts in df to topic.

read_pubmed() is faster than read_pubmed_jats() and thus recommended.

Value

Data frame containing PubMed-IDs, abstracts, abstract titles, publication years, languages, and article types.

See Also

read_pubmed_jats()

Other external data functions: read_pubmed_jats(), save_excel(), save_plot()


[Package miRetrieve version 1.3.4 Index]