Find Entries with Specific Characters in Fields
Source:R/boilerplate_batch_edit_functions.R
boilerplate_find_chars.Rd
This helper function finds all entries containing specific characters in a field. Useful for identifying which entries need cleaning.
Examples
if (FALSE) { # \dontrun{
# Find all entries with @, [, or ] in references
entries_to_clean <- boilerplate_find_chars(
db = unified_db,
field = "reference",
chars = c("@", "[", "]"),
category = "measures"
)
# Find entries but exclude specific ones
entries_to_clean <- boilerplate_find_chars(
db = unified_db,
field = "reference",
chars = c("@", "[", "]"),
exclude_entries = c("forgiveness", "special_*"),
category = "measures"
)
} # }