Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add arguments to record_level_table for easy filtering of cite_label and cite_string #197

Open
TNRiley opened this issue Aug 1, 2024 · 0 comments
Assignees
Labels
Enhancement New feature or request Internal Internal functionality

Comments

@TNRiley
Copy link
Collaborator

TNRiley commented Aug 1, 2024

Currently, a user must add further script to filter the record level table. Adding an argument to allow users to easily specify which data they want to see in the table would be helpful. I believe all we would need to do is this. @LukasWallrich thoughts on this?

NOTE: currently this shows citations, but actually it would be unique_citations per #190

# add parameters
cite_label_include = NULL, cite_string_include = NULL

AND

# add filter logic
# Filter citations if cite_label_include is provided
if (!is.null(cite_label_include)) {
  citations <- citations %>%
    dplyr::filter(stringr::str_detect(cite_label, cite_label_include))
}

# Filter citations if cite_string_include is provided
if (!is.null(cite_string_include)) {
  citations <- citations %>%
    dplyr::filter(stringr::str_detect(cite_string, cite_string_include))
}
@TNRiley TNRiley self-assigned this Aug 1, 2024
@TNRiley TNRiley added Enhancement New feature or request Internal Internal functionality labels Aug 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature or request Internal Internal functionality
Projects
None yet
Development

No branches or pull requests

1 participant