View source: R/flag_outlooktime.R
| flag_outlooktime | R Documentation |
This function flags unusual outlook calendar settings for start and end time of work day.
flag_outlooktime(data, threshold = c(4, 15), return = "message")
data |
A data frame containing a Person Query. |
threshold |
A numeric vector of length two, specifying the hour threshold for flagging. Defaults to c(4, 15). |
return |
String specifying what to return. This must be one of the following strings:
|
A different output is returned depending on the value passed to the return
argument:
"text": string. A diagnostic message.
"message": message on console. A diagnostic message.
"data": data frame. Data where flag is present.
See Value for more information.
Other Data Validation:
check_query(),
extract_hr(),
flag_ch_ratio(),
flag_em_ratio(),
flag_extreme(),
hr_trend(),
hrvar_count(),
hrvar_count_all(),
hrvar_trend(),
identify_churn(),
identify_holidayweeks(),
identify_inactiveweeks(),
identify_nkw(),
identify_outlier(),
identify_privacythreshold(),
identify_query(),
identify_shifts(),
identify_shifts_wp(),
identify_tenure(),
remove_outliers(),
standardise_pq(),
subject_validate(),
subject_validate_report(),
track_HR_change(),
validation_report()
# Demo with `dv_data`
flag_outlooktime(dv_data)
# Example where Outlook Start and End times are imputed
spq_df <- sq_data
spq_df$WorkingStartTimeSetInOutlook <- "6:30"
spq_df$WorkingEndTimeSetInOutlook <- "23:30"
# Return a message
flag_outlooktime(spq_df, threshold = c(5, 13))
# Return data
flag_outlooktime(spq_df, threshold = c(5, 13), return = "data")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.