validation_report {vivainsights} | R Documentation |
Generate a Data Validation report in HTML
Description
The function generates an interactive HTML report using Standard Person Query data as an input. The report contains checks on Viva Insights query outputs to provide diagnostic information for the Analyst prior to analysis.
An additional Standard Meeting Query can be provided to perform meeting subject line related checks. This is optional and the validation report can be run without it.
Usage
validation_report(
data,
meeting_data = NULL,
hrvar = "Organization",
path = "validation report",
hrvar_threshold = 150,
timestamp = TRUE
)
Arguments
data |
A Standard Person Query dataset in the form of a data frame. |
meeting_data |
An optional Meeting Query dataset in the form of a data frame. |
hrvar |
HR Variable by which to split metrics, defaults to "Organization" but accepts any character vector, e.g. "Organization" |
path |
Pass the file path and the desired file name, excluding the file extension. |
hrvar_threshold |
Numeric value determining the maximum number of unique
values to be allowed to qualify as a HR variable. This is passed directly
to the |
timestamp |
Logical vector specifying whether to include a timestamp in
the file name. Defaults to |
Details
For your input to data
or meeting_data
, please use the function
vivainsights::import_query()
to import your csv query files into R. This function will
standardize format and prepare the data as input for this report.
For most variables, a note is returned in-line instead of an error if the variable is not available.
Value
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.
Checking functions within validation_report()
-
check_query()
-
flag_ch_ratio()
-
hrvar_count_all()
-
identify_privacythreshold()
-
identify_nkw()
-
identify_holidayweeks()
-
subject_validate()
(available in 'wpa') -
identify_tenure()
-
flag_outlooktime()
-
identify_shifts()
-
track_HR_change()
You can browse each individual function for details on calculations.
Creating a report
Below is an example on how to run the report.
validation_report(pq_data, hrvar = "Organization")
See Also
Other Reports:
IV_report()
,
generate_report()
,
meeting_tm_report()
,
read_preamble()
Other Data Validation:
check_query()
,
extract_hr()
,
flag_ch_ratio()
,
flag_em_ratio()
,
flag_extreme()
,
flag_outlooktime()
,
hr_trend()
,
hrvar_count()
,
hrvar_count_all()
,
hrvar_trend()
,
identify_churn()
,
identify_holidayweeks()
,
identify_inactiveweeks()
,
identify_nkw()
,
identify_outlier()
,
identify_privacythreshold()
,
identify_shifts()
,
identify_tenure()
,
track_HR_change()