This function retrieves the unit groups from the server using a GET request, parses the response, extracts the relevant information (Id and Name), and returns a unique data frame of unit groups. The structure of the returned data frame is as follows:
data.frame: 26 observations of 2 variables
$ Id: num
$ Name: chr
get_tenant_unit_groups()
A unique data frame containing the Id and Name of each unit group. The structure of the returned data frame is as follows:
data.frame: A variable number of observations of 2 variables (depends on the response from the server)
$ Id: num
$ Name: chr
# Retrieve the unique tenant unit groups data frame
unit_groups <- get_tenant_unit_groups()
head(unit_groups)