Skip to content

Commit

Permalink
Sanitise collection data field names
Browse files Browse the repository at this point in the history
  • Loading branch information
wkmor1 committed Dec 5, 2023
1 parent 761231c commit 642f8ba
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions R/finbif_collections.R
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,8 @@ get_collections <- function(col_obj) {

col_names <- gsub("([a-z])([A-Z])", "\\1_\\L\\2", col_names, perl = TRUE)

col_names <- tolower(col_names)

structure(collections, names = col_names)

}

0 comments on commit 642f8ba

Please sign in to comment.