rt_fund: Identify and extract Funding statements in TXT files.

View source: R/rt_fund.R

rt_fundR Documentation

Identify and extract Funding statements in TXT files.

Description

Takes a TXT file and returns data related to the presence of a Funding statement, including whether a Funding statement exists. If a Funding statement exists, it extracts it.

Usage

rt_fund(filename)

Arguments

filename

The name of the TXT file as a string.

Value

A dataframe of results. It returns the PMID (if this was part of the filename), whether a funding statement was found, what this statement was and the name of the function that identified this text. The functions are returned to add flexibility in how this package is used, such as future definitions of COI that may differ from the one we used.

Examples

## Not run: 
# Path to PMC XML.
filepath <- "../inst/extdata/00003-PMID26637448-PMC4737611.txt"

# Identify and extract meta-data and indicators of transparency.
results_table <- rt_fund(filepath)

## End(Not run)

serghiou/rtransparent documentation built on Dec. 26, 2024, 8:19 p.m.