getDatabaseRole: getDatabaseRole

View source: R/databases.R

getDatabaseRoleR Documentation

getDatabaseRole

Description

Helper method to fetch a role based on its id using the database tree or database id.

Usage

getDatabaseRole(database, roleId)

Arguments

database

database tree using getDatabaseTree or the databaseId

roleId

the id of the role.

Examples

## Not run: 
# Get the reporting partner role
dbTree <- getDatabaseTree(databaseId = "ck3pqrp9a1z") # fetch the database tree
role <- getDatabaseRole(dbTree, roleId = "rp") # extract the reporting partner role

## End(Not run)

bedatadriven/activityinfo-R documentation built on Dec. 21, 2024, 8:23 a.m.