unitAttribute: Get unit attributes from an access tree file

View source: R/userAttribute.R

unitAttributeR Documentation

Get unit attributes from an access tree file

Description

Obtain organization unit attributes from an access tree JSON file

Usage

unitAttribute(unit, what, file = NULL, path = Sys.getenv("R_RAP_CONFIG_PATH"))

Arguments

unit

Integer providing the look-up unit id

what

Character string defining what to return for the given unit id

file

Character string file name of the JSON file. Default values is NULL in which case the corresponding value from rapbaseConfig.yml will be used.

path

Character string file path of the JSON file. Default value is Sys.getenv("R_RAP_CONFIG_PATH").

Value

The corresponding value of 'what'.


Rapporteket/rapbase documentation built on Nov. 22, 2023, 9:21 p.m.