| rt_score | R Documentation |
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.
rt_score(data, indicators = NULL, name = "n_indicators")
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"'). |
'data' as a tibble with the integer count column added. Rows with no assessed indicators receive 'NA' for the count. Tabulate it (for example with [table()] or 'dplyr::count()') for the distribution of the number of practices met.
[rt_summary()]
data(rt_demo)
scored <- rt_score(rt_demo)
table(scored$n_indicators)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.