Limit dataset to hospitals that have data for all years 2020 - max year of your choice

sites_w_all_years_dt(df, max_year)

Arguments

df

Data frame -- usually this is OBI's current, processed data read into R using data.table::fread. Preferably this has already been run through obstinit::create_obi_cohort()