Description Usage Arguments Value
Based on 4 criteria from Unpaywall:
is_oa (logical)
host_type (character or factor, must be 'publisher', 'repository' if is_oa is TRUE)
journal_is_oa (logical)
license (character or factor)
strings are case-insensitive Applied rules are:
if is_oa is NA, 'unknown' is returned
if is_oa is FALSE, 'closed' is returned
if host_type is 'repository', 'green' is returned
if host_type is 'publisher' and 'journal_is_oa' is TRUE, 'pure gold' is returned
if host_type is 'publisher' and 'license' is NA or an empty string, 'bronze' is returned
if host_type is 'publisher' and 'license' is not NA or an empty, 'hyrbid' is returned
if we reach this step is_oa is TRUE, but host_type is unknown. SO we return 'unclear (error)'
1 |
..., |
df Either single vectors, or a data.frame with appropriate columns (or a list with equal-length elements) Should either be named with the names "c('is_oa', 'host_type', 'journal_is_oa','license')", or be of length 4, in this order |
A vector of colors (as a factor)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.