Added example with imputed times which also acts as a test for the function
This commit is contained in:
Martin Chan 2021-02-08 22:07:26 +00:00
Родитель 257cce7d06
Коммит b4db53adcd
2 изменённых файлов: 16 добавлений и 0 удалений

Просмотреть файл

@ -19,7 +19,15 @@
#' @family Data Validation
#'
#' @examples
#' # 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"
#' flag_outlooktime(spq_df, threshold = c(5, 13))
#'
#' @export
flag_outlooktime <- function(data, threshold = c(4, 15), return = "message"){

Просмотреть файл

@ -20,7 +20,15 @@ This function flags unusual outlook calendar settings for
start and end time of work day.
}
\examples{
# 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"
flag_outlooktime(spq_df, threshold = c(5, 13))
}
\seealso{
Other Data Validation: