Skip to content

Commit

Permalink
do not bother take the dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
defuneste committed Jul 23, 2024
1 parent 912863e commit f48a984
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,5 @@ Imports:
jsonlite,
utils,
DBI,
duckdb
duckdb,
stringi
1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ export(get_nbm_available)
export(get_nbm_release)
import(DBI)
import(duckdb)
importFrom(stringi,stri_pad_left)
4 changes: 3 additions & 1 deletion R/check_frn.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@
#' @return a table with info on FRN
#' @export
#'
#' @importFrom stringi stri_pad_left
#'
#' @examples
#' check_frn(8181448)

check_frn <- function(frn) {
frn_pad <- sprintf("%010s", frn)
frn_pad <- stringi::stri_pad_left(frn, width = 10, pad = "0")
filter <- cori.data.fcc::fcc_provider[["frn"]] %in% frn_pad
dat <- cori.data.fcc::fcc_provider[filter, ]
return(dat)
Expand Down

0 comments on commit f48a984

Please sign in to comment.