The function generates an interactive HTML report using the Standard Person Query data as an input. The report contains a series of summary analysis and visualisations relating to key capacity metrics in Viva Insights,including length of week and time in after-hours collaboration.
capacity_report( data, hrvar = "Organization", mingroup = 5, path = "capacity report", timestamp = TRUE )
A Standard Person Query dataset in the form of a data frame.
String containing the name of the HR Variable by which to split
metrics. Defaults to
"Organization". To run the analysis on the total
instead of splitting by an HR attribute, supply
NULL (without quotes).
Numeric value setting the privacy threshold / minimum group size. Defaults to 5.
Pass the file path and the desired file name, excluding the file extension.
Logical vector specifying whether to include a timestamp in the file name. Defaults to TRUE.
An HTML report with the same file name as specified in the arguments is generated in the working directory. No outputs are directly returned by the function.