More from this project:
Organizations by IRS Subsection
501(c)(20) - Legal Service Organizations
library(tidyverse)
library(knitr)
library(stringr)
library(scales)
library(httr)
source('https://raw.githubusercontent.com/UrbanInstitute/urban_R_theme/master/urban_theme_windows.R')
#Import IRS BMF
bmffile <- read.csv(file = "Data/bm1608.csv")
#Filter out of scope organizations
bmffile <- bmffile %>%
filter((OUTNCCS != "OUT")) %>%
filter((FNDNCD != "02" & FNDNCD!= "03" & FNDNCD != "04")) %>%
filter((SUBSECCD == "20"))
#Sort the bmf in descending order by gross receipts
#Limit the list to 10
#Select the appropriate columns, drop the rest
LargestGrossReceipts <- bmffile %>%
arrange(desc(INCOME)) %>%
slice(1:10) %>%
select(NAME, INCOME, ASSETS)
#Rename columns appropriately
colnames(LargestGrossReceipts) <- c("Organization", "Gross Receipts", "Total Assets")
LargestAssets <- bmffile %>%
arrange(desc(ASSETS)) %>%
slice(1:10) %>%
select(NAME, INCOME, ASSETS)
#Rename columns appropriately
colnames(LargestAssets) <- c("Organization", "Gross Receipts", "Total Assets")
#Generate random sample
set.seed(143)
random20 <- bmffile %>%
filter(bmffile$INCOME != 0 | bmffile$ASSETS != 0)
random20 <-sample_n(random20, 20, replace = TRUE) %>%
select(NAME, INCOME, ASSETS)
colnames(random20) <- c("Organization", "Gross Receipts", "Total Assets")
Number of organizations reporting assets or income = 3. Total Gross Receipts = $1,100,342. Total Assets = $585,601.
Largest 501(c)(20)s by Gross Receipts
#display tables
kable(LargestGrossReceipts, format.args = list(decimal.mark = '.', big.mark = ","), caption = "Largest Organizations (By Gross Receipts)")
Organization | Gross Receipts | Total Assets |
---|---|---|
CIVIL SERVICE TECH GUILD LOC 375 PROFESSIONAL EMP LEGAL SVCES TR | 1,034,720 | 55,347 |
AFSCME LOCAL NO 54 LEGAL SERVICES FUND | 51,646 | 64,202 |
UNITED UNION OF ROOFERS LOCAL 8 | 13,976 | 466,052 |
Largest 501(c)(20)s by Total Assets
#display tables
kable(LargestAssets, format.args = list(decimal.mark = '.', big.mark = ","), caption ="Largest Organizations (By Total Assets)")
Organization | Gross Receipts | Total Assets |
---|---|---|
UNITED UNION OF ROOFERS LOCAL 8 | 13,976 | 466,052 |
AFSCME LOCAL NO 54 LEGAL SERVICES FUND | 51,646 | 64,202 |
CIVIL SERVICE TECH GUILD LOC 375 PROFESSIONAL EMP LEGAL SVCES TR | 1,034,720 | 55,347 |
Random Sample of 501(c)(20)s
#display tables
kable(random20, format.args = list(decimal.mark = '.', big.mark = ","), caption = "Random Sample" )
Organization | Gross Receipts | Total Assets | |
---|---|---|---|
3 | AFSCME LOCAL NO 54 LEGAL SERVICES FUND | 51,646 | 64,202 |
1 | UNITED UNION OF ROOFERS LOCAL 8 | 13,976 | 466,052 |
3.1 | AFSCME LOCAL NO 54 LEGAL SERVICES FUND | 51,646 | 64,202 |
2 | CIVIL SERVICE TECH GUILD LOC 375 PROFESSIONAL EMP LEGAL SVCES TR | 1,034,720 | 55,347 |
1.1 | UNITED UNION OF ROOFERS LOCAL 8 | 13,976 | 466,052 |
3.2 | AFSCME LOCAL NO 54 LEGAL SERVICES FUND | 51,646 | 64,202 |
2.1 | CIVIL SERVICE TECH GUILD LOC 375 PROFESSIONAL EMP LEGAL SVCES TR | 1,034,720 | 55,347 |
2.2 | CIVIL SERVICE TECH GUILD LOC 375 PROFESSIONAL EMP LEGAL SVCES TR | 1,034,720 | 55,347 |
2.3 | CIVIL SERVICE TECH GUILD LOC 375 PROFESSIONAL EMP LEGAL SVCES TR | 1,034,720 | 55,347 |
2.4 | CIVIL SERVICE TECH GUILD LOC 375 PROFESSIONAL EMP LEGAL SVCES TR | 1,034,720 | 55,347 |
2.5 | CIVIL SERVICE TECH GUILD LOC 375 PROFESSIONAL EMP LEGAL SVCES TR | 1,034,720 | 55,347 |
1.2 | UNITED UNION OF ROOFERS LOCAL 8 | 13,976 | 466,052 |
3.3 | AFSCME LOCAL NO 54 LEGAL SERVICES FUND | 51,646 | 64,202 |
1.3 | UNITED UNION OF ROOFERS LOCAL 8 | 13,976 | 466,052 |
3.4 | AFSCME LOCAL NO 54 LEGAL SERVICES FUND | 51,646 | 64,202 |
3.5 | AFSCME LOCAL NO 54 LEGAL SERVICES FUND | 51,646 | 64,202 |
1.4 | UNITED UNION OF ROOFERS LOCAL 8 | 13,976 | 466,052 |
1.5 | UNITED UNION OF ROOFERS LOCAL 8 | 13,976 | 466,052 |
3.6 | AFSCME LOCAL NO 54 LEGAL SERVICES FUND | 51,646 | 64,202 |
1.6 | UNITED UNION OF ROOFERS LOCAL 8 | 13,976 | 466,052 |
Source: NCCS IRS Business Master File August 2016