R/BUILD_F9_P07_T02_CONTRACTORS.R

Defines functions BUILD_F9_P07_T02_CONTRACTORS

#' @title 
#'   Build table F9-P07-T02-CONTRACTORS
#' 
#' @description 
#'   Generate a 1:M table for the relational database.
#' 
#' @export 
BUILD_F9_P07_T02_CONTRACTORS <- function( doc, url ){ 

keys <- get_keys( doc, url )
dfk <- as.data.frame( keys )

table.headers <- TABLE.HEADERS[[ 'F9-P07-T02-CONTRACTORS' ]]
v.map <- get_var_map( 'F9-P07-T02-CONTRACTORS' )
df <- get_table_v2( doc, table.name='F9-P07-T02-CONTRACTORS', table.headers  )
if( is.null(df) ){ return( NULL ) }
df <- re_name( df, v.map )

rdb.table <- data.frame( dfk, df )
return ( rdb.table )

}
Nonprofit-Open-Data-Collective/irs990efile documentation built on Feb. 5, 2025, 3:07 a.m.