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 organizational units at KTH and some metadata used in the ABM

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 four slots - "meta" for organizational unit metadata info, "units" with a named list of results (set of tibbles for each of the units), "pt_ordning" for DiVA publication type sort order and analysis_date for the date of data extraction

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 Nov. 8, 2024, 4:05 p.m.