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_shifts()
,
identify_tenure()
,
track_HR_change()
,
validation_report()
# Demo with `pq_data` example where Outlook Start and End times are imputed
spq_df <- pq_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.