abm_public_data: Public data from the Annual Bibliometric Monitoring project

View source: R/abm.R

abm_public_dataR Documentation

Public data from the Annual Bibliometric Monitoring project

Description

This returns an object which contains data for the various higher organizational units at KTH

Usage

abm_public_data(overwrite_cache = FALSE)

Arguments

overwrite_cache

logical (by default FALSE) specifying whether the cache should be refreshed

Details

Data is cached in a local application directory by default and is returned from there unless the parameter overwrite_cache is TRUE. To get fresh data cached, specify this flag.

Value

a list with three slots - "meta" for organizational unit metadata info, "units" with a named list of results (set of 5 different tibbles for each of the units) and "pt_ordning" for DiVA publication type sort order

Examples

## Not run: 

# get all public data from the ABM
public <- abm_public_data()

# get public data specifically for KTH and table 1
unit_kth <- public |> pluck("units", "KTH", "diva")
 
# get public data specifically for KTH and table 1
unit_kth <- public |> pluck("units", "KTH", "diva")

# get public data for the school "I" and all five tables
unit_i <- public |> pluck("units", "I")

# get public data for the architecture institution, table 1
uc <- public |> pluck("meta") |> 
  filter(unit_long_en == "Architecture") |> pull(unit_code)
  
public |> pluck("units", uc, 1)


## End(Not run)   

KTH-Library/bibliomatrix documentation built on May 20, 2024, 11:33 p.m.