Skip to content

Commit

Permalink
Update functions.R
Browse files Browse the repository at this point in the history
  • Loading branch information
lecy authored Nov 20, 2024
1 parent e17767b commit cd69d12
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions functions.R
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ get_partvii <- function( year ){


get_bmf <- function( inactive=TRUE ){
url <- https://nccsdata.s3.us-east-1.amazonaws.com/harmonized/bmf/unified/BMF_UNIFIED_ACTIVE_ORGS_V1.1.csv
url <- "https://nccsdata.s3.us-east-1.amazonaws.com/harmonized/bmf/unified/BMF_UNIFIED_ACTIVE_ORGS_V1.1.csv"
bmf <- data.table::fread( url )

if( inactive ){
url2 <- https://nccsdata.s3.us-east-1.amazonaws.com/harmonized/bmf/unified/BMF_UNIFIED_INACTIVE_ORGS_V1.1.csv
url2 <- "https://nccsdata.s3.us-east-1.amazonaws.com/harmonized/bmf/unified/BMF_UNIFIED_INACTIVE_ORGS_V1.1.csv"
bmf2 <- data.table::fread( url )
bmf <- dplyr::bind_rows( bmf, bmf2 ) }

Expand All @@ -47,4 +47,4 @@ format_ein <- function( x, to="id" ) {
x <- gsub( "[^0-9]", "", x )
return( x ) }

}
}

0 comments on commit cd69d12

Please sign in to comment.