Adds a column giving, for each article (row), how many of the transparency indicators were detected. This is the per-article transparency score used to describe how many practices an article adheres to.
Arguments
- data
A data frame with one row per article and indicator columns named as in [rt_all_pmc()].
- indicators
Optional character vector of indicator columns to count. Defaults to the five openness practices present in `data` (conflicts of interest, funding, registration, data and code); novelty and replication are excluded unless requested explicitly, as they are not adherence practices.
- name
Name of the count column to add (default `"n_indicators"`).