rt_all: Identify and extract statements of COI, Funding and...

View source: R/rt_all.R

rt_allR Documentation

Identify and extract statements of COI, Funding and Registration.

Description

Takes a TXT file and examines whether any statements of Conflicts of Interest (COI), Funding or Protocol Registration exist. If any such statements are found, it also extracts the relevant text.

Usage

rt_all(filename)

Arguments

filename

The name of the TXT as a string.

Value

A dataframe of results. A dataframe of results. It returns the PMID of the article (if this was included in the filename and preced by "PMID"), whether each of 3 indicators of transparency (COI, Funding or Registration) was identified, the relevant text identified and whether each labelling function identified relevant text or not. The labeling functions are eturned to add flexibility in how this package is used; for example, future definitions of Registration may differ from the one we used. If a labelling function returns NA it means that it was not run.

Examples

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

# Identify and extract indicators of transparency.
results_table <- rt_all(filepath)

## End(Not run)

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