This commit is contained in:
Martin Chan 2021-02-05 20:00:02 +00:00
Родитель c04b457c9c
Коммит 835f49fe72
8 изменённых файлов: 38 добавлений и 18 удалений

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

@ -24,6 +24,7 @@
#' #'
#' # Return a summary table #' # Return a summary table
#' afterhours_summary(sq_data, hrvar = "LevelDesignation", return = "table") #' afterhours_summary(sq_data, hrvar = "LevelDesignation", return = "table")
#'
#' @export #' @export
afterhours_summary <- function(data, afterhours_summary <- function(data,
hrvar = "Organization", hrvar = "Organization",

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

@ -11,20 +11,17 @@
#' Additional options available to return a summary table. #' Additional options available to return a summary table.
#' #'
#' @inheritParams create_bar #' @inheritParams create_bar
#' #' @inherit create_bar return
#' #'
#' @family Emails #' @family Emails
#' #'
#' @return
#' Returns a ggplot object by default, where 'plot' is passed in `return`.
#' When 'table' is passed, a summary table is returned as a data frame.
#'
#' @examples #' @examples
#' # Return a ggplot bar chart #' # Return a ggplot bar chart
#' email_summary(sq_data, hrvar = "LevelDesignation") #' email_summary(sq_data, hrvar = "LevelDesignation")
#' #'
#' # Return a summary table #' # Return a summary table
#' email_summary(sq_data, hrvar = "LevelDesignation", return = "table") #' email_summary(sq_data, hrvar = "LevelDesignation", return = "table")
#'
#' @export #' @export
email_summary <- function(data, email_summary <- function(data,

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

@ -11,19 +11,17 @@
#' Additional options available to return a summary table. #' Additional options available to return a summary table.
#' #'
#' @inheritParams create_bar #' @inheritParams create_bar
#' @inherit create_bar return
#' #'
#' @family Meetings #' @family Meetings
#' #'
#' @return
#' Returns a ggplot object by default, where 'plot' is passed in `return`.
#' When 'table' is passed, a summary table is returned as a data frame.
#'
#' @examples #' @examples
#' # Return a ggplot bar chart #' # Return a ggplot bar chart
#' meeting_summary(sq_data, hrvar = "LevelDesignation") #' meeting_summary(sq_data, hrvar = "LevelDesignation")
#' #'
#' # Return a summary table #' # Return a summary table
#' meeting_summary(sq_data, hrvar = "LevelDesignation", return = "table") #' meeting_summary(sq_data, hrvar = "LevelDesignation", return = "table")
#'
#' @export #' @export
meeting_summary <- function(data, meeting_summary <- function(data,
hrvar = "Organization", hrvar = "Organization",

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

@ -11,12 +11,16 @@
#' Additional options available to return a summary table. #' Additional options available to return a summary table.
#' #'
#' @inheritParams create_bar #' @inheritParams create_bar
#' @inherit create_bar return
#' #'
#' @family Managerial Relations #' @family Managerial Relations
#' #'
#' @return #' @examples
#' Returns a ggplot object by default, where 'plot' is passed in `return`. #' # Return a ggplot bar chart
#' When 'table' is passed, a summary table is returned as a data frame. #' one2one_sum(sq_data, hrvar = "LevelDesignation")
#'
#' # Return a summary table
#' one2one_sum(sq_data, hrvar = "LevelDesignation", return = "table")
#' #'
#' @export #' @export

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

@ -46,6 +46,7 @@ afterhours_summary(sq_data, hrvar = "LevelDesignation")
# Return a summary table # Return a summary table
afterhours_summary(sq_data, hrvar = "LevelDesignation", return = "table") afterhours_summary(sq_data, hrvar = "LevelDesignation", return = "table")
} }
\seealso{ \seealso{
Other After-Hours: Other After-Hours:

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

@ -26,8 +26,11 @@ but accepts any character vector, e.g. "LevelDesignation"}
See \code{Value} for more information.} See \code{Value} for more information.}
} }
\value{ \value{
Returns a ggplot object by default, where 'plot' is passed in \code{return}. A different output is returned depending on the value passed to the \code{return} argument:
When 'table' is passed, a summary table is returned as a data frame. \itemize{
\item \code{"plot"}: ggplot object. A bar plot for the metric.
\item \code{"table"}: data frame. A summary table for the metric.
}
} }
\description{ \description{
Provides an overview analysis of weekly email hours. Provides an overview analysis of weekly email hours.
@ -40,6 +43,7 @@ email_summary(sq_data, hrvar = "LevelDesignation")
# Return a summary table # Return a summary table
email_summary(sq_data, hrvar = "LevelDesignation", return = "table") email_summary(sq_data, hrvar = "LevelDesignation", return = "table")
} }
\seealso{ \seealso{
Other Emails: Other Emails:

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

@ -26,8 +26,11 @@ but accepts any character vector, e.g. "LevelDesignation"}
See \code{Value} for more information.} See \code{Value} for more information.}
} }
\value{ \value{
Returns a ggplot object by default, where 'plot' is passed in \code{return}. A different output is returned depending on the value passed to the \code{return} argument:
When 'table' is passed, a summary table is returned as a data frame. \itemize{
\item \code{"plot"}: ggplot object. A bar plot for the metric.
\item \code{"table"}: data frame. A summary table for the metric.
}
} }
\description{ \description{
Provides an overview analysis of weekly meeting hours. Provides an overview analysis of weekly meeting hours.
@ -40,6 +43,7 @@ meeting_summary(sq_data, hrvar = "LevelDesignation")
# Return a summary table # Return a summary table
meeting_summary(sq_data, hrvar = "LevelDesignation", return = "table") meeting_summary(sq_data, hrvar = "LevelDesignation", return = "table")
} }
\seealso{ \seealso{
Other Meetings: Other Meetings:

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

@ -26,13 +26,24 @@ but accepts any character vector, e.g. "LevelDesignation"}
See \code{Value} for more information.} See \code{Value} for more information.}
} }
\value{ \value{
Returns a ggplot object by default, where 'plot' is passed in \code{return}. A different output is returned depending on the value passed to the \code{return} argument:
When 'table' is passed, a summary table is returned as a data frame. \itemize{
\item \code{"plot"}: ggplot object. A bar plot for the metric.
\item \code{"table"}: data frame. A summary table for the metric.
}
} }
\description{ \description{
Provides an overview analysis of Manager 1:1 Time. Provides an overview analysis of Manager 1:1 Time.
Returns a bar plot showing average weekly minutes of Manager 1:1 Time by default. Returns a bar plot showing average weekly minutes of Manager 1:1 Time by default.
Additional options available to return a summary table. Additional options available to return a summary table.
}
\examples{
# Return a ggplot bar chart
one2one_sum(sq_data, hrvar = "LevelDesignation")
# Return a summary table
one2one_sum(sq_data, hrvar = "LevelDesignation", return = "table")
} }
\seealso{ \seealso{
Other Managerial Relations: Other Managerial Relations: