Package is not registered. To add directly from github:
import Pkg
Pkg.add(url="https://github.com/eloualiche/FirmDynamics.jl")
See ImportCBP.jl
which export two functions.
Using a collection of dates, download for a given level of aggregation for industry types (specify naics
or sic
depending on which years you want to download).
using FirmDynamics
df_CBP_naics = FirmDynamics.build_CBP(2018:2020,
aggregation=:county, industry=:naics);
A function aggregates directly the CBP into employment by cells (geographical unit x industry unit).
df_CBP_emp_naics4 = FirmDynamics.build_emp_CBP(2018:2020,
aggregation=:county, industry=:naics, level=4);
# similar result can be achieved using data downloaded above
df_CBP_emp_naics4 = FirmDynamics.build_emp_CBP(df_CBP_naics,
aggregation=:county, industry=:naics, level=4)