Skip to contents

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'.