Retrieve data for ABM tables and graphs from master table
Usage
abm_data(con = con_bib(), unit_code, pub_year, unit_level, analysisId)Arguments
- con
connection to db, default is sqlite connection
- unit_code
for filtering on one or more unit code(s), which can be KTH, a one letter school code, an integer department code or a KTH-id (optional)
- pub_year
for filtering on publication years, for example 2012, 2012:2018 or c(2012, 2014, 2016) (optional)
- unit_level
for filtering on organizational level, 0 = KTH, 1 = school, 2 = deparment, 3 = researcher.
- analysisId
for filtering on specific analysis, for example 1 = KTH ABM 2020