docs: add alias and clean documentation

Changes mainly to _dist and _sum functions
This commit is contained in:
Martin Chan 2020-11-18 15:43:32 +00:00
Родитель 7e6e70290f
Коммит e42baba7d3
29 изменённых файлов: 71 добавлений и 56 удалений

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

@ -50,6 +50,7 @@ export(email_dist)
export(email_fizz) export(email_fizz)
export(email_line) export(email_line)
export(email_rank) export(email_rank)
export(email_sum)
export(email_summary) export(email_summary)
export(email_trend) export(email_trend)
export(export) export(export)
@ -79,18 +80,19 @@ export(internal_network_plot)
export(is_date_format) export(is_date_format)
export(keymetrics_scan) export(keymetrics_scan)
export(meeting_dist) export(meeting_dist)
export(meeting_distribution)
export(meeting_fizz) export(meeting_fizz)
export(meeting_line) export(meeting_line)
export(meeting_quality) export(meeting_quality)
export(meeting_rank) export(meeting_rank)
export(meeting_skim) export(meeting_skim)
export(meeting_sum)
export(meeting_summary) export(meeting_summary)
export(meeting_tm_report) export(meeting_tm_report)
export(meeting_trend) export(meeting_trend)
export(meetingtype_dist) export(meetingtype_dist)
export(meetingtype_dist_ca) export(meetingtype_dist_ca)
export(meetingtype_dist_mt) export(meetingtype_dist_mt)
export(meetingtype_sum)
export(meetingtype_summary) export(meetingtype_summary)
export(mgrcoatt_dist) export(mgrcoatt_dist)
export(mgrrel_matrix) export(mgrrel_matrix)
@ -99,6 +101,7 @@ export(one2one_fizz)
export(one2one_line) export(one2one_line)
export(one2one_rank) export(one2one_rank)
export(one2one_sum) export(one2one_sum)
export(one2one_summary)
export(one2one_trend) export(one2one_trend)
export(period_change) export(period_change)
export(personas_hclust) export(personas_hclust)
@ -124,6 +127,7 @@ export(workloads_dist)
export(workloads_fizz) export(workloads_fizz)
export(workloads_line) export(workloads_line)
export(workloads_rank) export(workloads_rank)
export(workloads_sum)
export(workloads_summary) export(workloads_summary)
export(workloads_trend) export(workloads_trend)
export(workpatterns_area) export(workpatterns_area)

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

@ -3,7 +3,7 @@
# Licensed under the MIT License. See LICENSE.txt in the project root for license information. # Licensed under the MIT License. See LICENSE.txt in the project root for license information.
# -------------------------------------------------------------------------------------------- # --------------------------------------------------------------------------------------------
#' @title After-Hours distribution #' @title Distribution of After-hours Collaboration Hours as a 100% stacked bar
#' @name afterhours_dist #' @name afterhours_dist
#' #'
#' @description Analyse the distribution of weekly after-hours collaboration time. #' @description Analyse the distribution of weekly after-hours collaboration time.

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

@ -3,7 +3,7 @@
# Licensed under the MIT License. See LICENSE.txt in the project root for license information. # Licensed under the MIT License. See LICENSE.txt in the project root for license information.
# -------------------------------------------------------------------------------------------- # --------------------------------------------------------------------------------------------
#' @title Collaboration Hours distribution #' @title Distribution of Collaboration Hours as a 100% stacked bar
#' #'
#' @description #' @description
#' Analyze the distribution of Collaboration Hours. #' Analyze the distribution of Collaboration Hours.
@ -39,7 +39,3 @@ collaboration_dist <- function(data,
} }
#' @rdname collaboration_dist
#' @export
collaboration_distribution <- collaboration_dist

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

@ -3,7 +3,7 @@
# Licensed under the MIT License. See LICENSE.txt in the project root for license information. # Licensed under the MIT License. See LICENSE.txt in the project root for license information.
# -------------------------------------------------------------------------------------------- # --------------------------------------------------------------------------------------------
#' @title Email Hours distribution #' @title Distribution of Email Hours as a 100% stacked bar
#' #'
#' @description #' @description
#' Analyze Email Hours distribution. #' Analyze Email Hours distribution.

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

@ -41,7 +41,9 @@ email_summary <- function(data,
} }
#' @rdname email_summary
#' @export
email_sum <- email_summary

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

@ -3,7 +3,7 @@
# Licensed under the MIT License. See LICENSE.txt in the project root for license information. # Licensed under the MIT License. See LICENSE.txt in the project root for license information.
# -------------------------------------------------------------------------------------------- # --------------------------------------------------------------------------------------------
#' @title Meeting Hours distribution #' @title Distribution of Meeting Hours as a 100% stacked bar
#' #'
#' @description #' @description
#' Analyze Meeting Hours distribution. #' Analyze Meeting Hours distribution.
@ -40,7 +40,3 @@ meeting_dist <- function(data,
return = return, return = return,
cut = cut) cut = cut)
} }
#' @rdname meeting_dist
#' @export
meeting_distribution <- meeting_dist

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

@ -38,6 +38,9 @@ meeting_summary <- function(data,
bar_colour = "default") bar_colour = "default")
} }
#' @rdname meeting_summary
#' @export
meeting_sum <- meeting_summary

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

@ -1,4 +1,4 @@
#' @title Meeting Type Distribution #' @title Distribution of Meeting Types by number of Attendees and Duration
#' #'
#' @description #' @description
#' Calculate the hour distribution of internal meeting types. #' Calculate the hour distribution of internal meeting types.

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

@ -21,6 +21,8 @@
#' @import ggplot2 #' @import ggplot2
#' @import dplyr #' @import dplyr
#' #'
#' @family Meetings
#'
#' @export #' @export
meetingtype_summary <- function(data, meetingtype_summary <- function(data,
hrvar = "Organization", hrvar = "Organization",
@ -67,3 +69,8 @@ meetingtype_summary <- function(data,
stop("Please enter a valid input for `return`.") stop("Please enter a valid input for `return`.")
} }
} }
#' @rdname meetingtype_summary
#' @export
meetingtype_sum <- meetingtype_summary

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

@ -3,7 +3,7 @@
# Licensed under the MIT License. See LICENSE.txt in the project root for license information. # Licensed under the MIT License. See LICENSE.txt in the project root for license information.
# -------------------------------------------------------------------------------------------- # --------------------------------------------------------------------------------------------
#' @title Manager 1:1 Time Trend distribution #' @title Distribution of Manager 1:1 Time as a 100% stacked bar
#' #'
#' @description #' @description
#' Analyze Manager 1:1 Time distribution. #' Analyze Manager 1:1 Time distribution.

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

@ -39,7 +39,9 @@ one2one_sum <- function(data,
} }
#' @rdname one2one_sum
#' @export
one2one_summary <- one2one_sum

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

@ -3,7 +3,7 @@
# Licensed under the MIT License. See LICENSE.txt in the project root for license information. # Licensed under the MIT License. See LICENSE.txt in the project root for license information.
# -------------------------------------------------------------------------------------------- # --------------------------------------------------------------------------------------------
#' @title Distribution of Work Week Span #' @title Distribution of Work Week Span as a 100% stacked bar
#' #'
#' @description #' @description
#' Analyze Work Week Span distribution. #' Analyze Work Week Span distribution.

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

@ -38,3 +38,7 @@ workloads_summary <- function(data,
bar_colour = "darkblue") bar_colour = "darkblue")
} }
#' @rdname workloads_summary
#' @export
workloads_sum <- workloads_summary

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

@ -2,7 +2,7 @@
% Please edit documentation in R/afterhours_dist.R % Please edit documentation in R/afterhours_dist.R
\name{afterhours_dist} \name{afterhours_dist}
\alias{afterhours_dist} \alias{afterhours_dist}
\title{After-Hours distribution} \title{Distribution of After-hours Collaboration Hours as a 100\% stacked bar}
\usage{ \usage{
afterhours_dist( afterhours_dist(
data, data,

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

@ -3,7 +3,7 @@
\name{collaboration_dist} \name{collaboration_dist}
\alias{collaboration_dist} \alias{collaboration_dist}
\alias{collaboration_distribution} \alias{collaboration_distribution}
\title{Collaboration Hours distribution} \title{Distribution of Collaboration Hours as a 100\% stacked bar}
\usage{ \usage{
collaboration_dist( collaboration_dist(
data, data,
@ -13,14 +13,6 @@ collaboration_dist(
cut = c(15, 20, 25) cut = c(15, 20, 25)
) )
collaboration_distribution(
data,
hrvar = "Organization",
mingroup = 5,
return = "plot",
cut = c(15, 20, 25)
)
collaboration_distribution( collaboration_distribution(
data, data,
hrvar = "Organization", hrvar = "Organization",

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

@ -2,7 +2,7 @@
% Please edit documentation in R/email_dist.R % Please edit documentation in R/email_dist.R
\name{email_dist} \name{email_dist}
\alias{email_dist} \alias{email_dist}
\title{Email Hours distribution} \title{Distribution of Email Hours as a 100\% stacked bar}
\usage{ \usage{
email_dist( email_dist(
data, data,

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

@ -2,9 +2,12 @@
% Please edit documentation in R/email_summary.R % Please edit documentation in R/email_summary.R
\name{email_summary} \name{email_summary}
\alias{email_summary} \alias{email_summary}
\alias{email_sum}
\title{Email Summary} \title{Email Summary}
\usage{ \usage{
email_summary(data, hrvar = "Organization", mingroup = 5, return = "plot") email_summary(data, hrvar = "Organization", mingroup = 5, return = "plot")
email_sum(data, hrvar = "Organization", mingroup = 5, return = "plot")
} }
\arguments{ \arguments{
\item{data}{A Standard Person Query dataset in the form of a data frame.} \item{data}{A Standard Person Query dataset in the form of a data frame.}

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

@ -2,14 +2,7 @@
% Please edit documentation in R/identify_outlier.R % Please edit documentation in R/identify_outlier.R
\name{identify_outlier} \name{identify_outlier}
\alias{identify_outlier} \alias{identify_outlier}
\title{Identify outliers across time \title{Identify metric outliers over a date interval}
This function takes in a selected metric and uses
z-score (number of standard deviations) to identify outliers
across time. There are applications in this for identifying
weeks with abnormally low collaboration activity, e.g. holidays.
Time as a grouping variable can be overridden with the \code{group_var}
argument.}
\usage{ \usage{
identify_outlier(data, group_var = "Date", metric = "Collaboration_hours") identify_outlier(data, group_var = "Date", metric = "Collaboration_hours")
} }
@ -27,8 +20,6 @@ Returns a data frame with \code{Date} (if grouping variable is not set),
the metric, and the corresponding z-score. the metric, and the corresponding z-score.
} }
\description{ \description{
Identify outliers across time
This function takes in a selected metric and uses This function takes in a selected metric and uses
z-score (number of standard deviations) to identify outliers z-score (number of standard deviations) to identify outliers
across time. There are applications in this for identifying across time. There are applications in this for identifying

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

@ -2,8 +2,7 @@
% Please edit documentation in R/meeting_dist.R % Please edit documentation in R/meeting_dist.R
\name{meeting_dist} \name{meeting_dist}
\alias{meeting_dist} \alias{meeting_dist}
\alias{meeting_distribution} \title{Distribution of Meeting Hours as a 100\% stacked bar}
\title{Meeting Hours distribution}
\usage{ \usage{
meeting_dist( meeting_dist(
data, data,
@ -12,14 +11,6 @@ meeting_dist(
return = "plot", return = "plot",
cut = c(5, 10, 15) cut = c(5, 10, 15)
) )
meeting_distribution(
data,
hrvar = "Organization",
mingroup = 5,
return = "plot",
cut = c(5, 10, 15)
)
} }
\arguments{ \arguments{
\item{data}{A Standard Person Query dataset in the form of a data frame.} \item{data}{A Standard Person Query dataset in the form of a data frame.}

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

@ -28,6 +28,7 @@ meeting_fizz(sq_data, hrvar = "Organization", return = "table")
Other Meetings: Other Meetings:
\code{\link{meeting_line}()}, \code{\link{meeting_line}()},
\code{\link{meeting_rank}()}, \code{\link{meeting_rank}()},
\code{\link{meeting_summary}()} \code{\link{meeting_summary}()},
\code{\link{meetingtype_summary}()}
} }
\concept{Meetings} \concept{Meetings}

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

@ -41,6 +41,7 @@ meeting_line(sq_data, hrvar = "LevelDesignation", return = "table")
Other Meetings: Other Meetings:
\code{\link{meeting_fizz}()}, \code{\link{meeting_fizz}()},
\code{\link{meeting_rank}()}, \code{\link{meeting_rank}()},
\code{\link{meeting_summary}()} \code{\link{meeting_summary}()},
\code{\link{meetingtype_summary}()}
} }
\concept{Meetings} \concept{Meetings}

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

@ -34,6 +34,7 @@ See \code{create_rank()} for applying the same analysis to a different metric.
Other Meetings: Other Meetings:
\code{\link{meeting_fizz}()}, \code{\link{meeting_fizz}()},
\code{\link{meeting_line}()}, \code{\link{meeting_line}()},
\code{\link{meeting_summary}()} \code{\link{meeting_summary}()},
\code{\link{meetingtype_summary}()}
} }
\concept{Meetings} \concept{Meetings}

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

@ -2,9 +2,12 @@
% Please edit documentation in R/meeting_summary.R % Please edit documentation in R/meeting_summary.R
\name{meeting_summary} \name{meeting_summary}
\alias{meeting_summary} \alias{meeting_summary}
\alias{meeting_sum}
\title{Meeting Summary} \title{Meeting Summary}
\usage{ \usage{
meeting_summary(data, hrvar = "Organization", mingroup = 5, return = "plot") meeting_summary(data, hrvar = "Organization", mingroup = 5, return = "plot")
meeting_sum(data, hrvar = "Organization", mingroup = 5, return = "plot")
} }
\arguments{ \arguments{
\item{data}{A Standard Person Query dataset in the form of a data frame.} \item{data}{A Standard Person Query dataset in the form of a data frame.}
@ -37,6 +40,7 @@ meeting_summary(sq_data, hrvar = "LevelDesignation", return = "table")
Other Meetings: Other Meetings:
\code{\link{meeting_fizz}()}, \code{\link{meeting_fizz}()},
\code{\link{meeting_line}()}, \code{\link{meeting_line}()},
\code{\link{meeting_rank}()} \code{\link{meeting_rank}()},
\code{\link{meetingtype_summary}()}
} }
\concept{Meetings} \concept{Meetings}

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

@ -2,7 +2,7 @@
% Please edit documentation in R/meetingtype_dist.R % Please edit documentation in R/meetingtype_dist.R
\name{meetingtype_dist} \name{meetingtype_dist}
\alias{meetingtype_dist} \alias{meetingtype_dist}
\title{Meeting Type Distribution} \title{Distribution of Meeting Types by number of Attendees and Duration}
\usage{ \usage{
meetingtype_dist(data, hrvar = NULL, mingroup = 5, return = "plot") meetingtype_dist(data, hrvar = NULL, mingroup = 5, return = "plot")
} }

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

@ -2,6 +2,7 @@
% Please edit documentation in R/meetingtype_summary.R % Please edit documentation in R/meetingtype_summary.R
\name{meetingtype_summary} \name{meetingtype_summary}
\alias{meetingtype_summary} \alias{meetingtype_summary}
\alias{meetingtype_sum}
\title{Create a summary bar chart of the proportion of Meeting Hours spent in Long or Large Meetings} \title{Create a summary bar chart of the proportion of Meeting Hours spent in Long or Large Meetings}
\usage{ \usage{
meetingtype_summary( meetingtype_summary(
@ -10,6 +11,8 @@ meetingtype_summary(
mingroup = 5, mingroup = 5,
return = "plot" return = "plot"
) )
meetingtype_sum(data, hrvar = "Organization", mingroup = 5, return = "plot")
} }
\arguments{ \arguments{
\item{data}{Collaboration Assessment query in the form of a data frame. Requires the following variables: \item{data}{Collaboration Assessment query in the form of a data frame. Requires the following variables:
@ -35,3 +38,11 @@ Valid inputs are "plot" and "table".}
This function creates a bar chart showing the percentage of meeting hours which are spent in This function creates a bar chart showing the percentage of meeting hours which are spent in
long or large meetings. long or large meetings.
} }
\seealso{
Other Meetings:
\code{\link{meeting_fizz}()},
\code{\link{meeting_line}()},
\code{\link{meeting_rank}()},
\code{\link{meeting_summary}()}
}
\concept{Meetings}

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

@ -2,7 +2,7 @@
% Please edit documentation in R/one2one_dist.R % Please edit documentation in R/one2one_dist.R
\name{one2one_dist} \name{one2one_dist}
\alias{one2one_dist} \alias{one2one_dist}
\title{Manager 1:1 Time Trend distribution} \title{Distribution of Manager 1:1 Time as a 100\% stacked bar}
\usage{ \usage{
one2one_dist( one2one_dist(
data, data,

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

@ -2,9 +2,12 @@
% Please edit documentation in R/one2one_sum.R % Please edit documentation in R/one2one_sum.R
\name{one2one_sum} \name{one2one_sum}
\alias{one2one_sum} \alias{one2one_sum}
\alias{one2one_summary}
\title{Manager 1:1 Time Summary} \title{Manager 1:1 Time Summary}
\usage{ \usage{
one2one_sum(data, hrvar = "Organization", mingroup = 5, return = "plot") one2one_sum(data, hrvar = "Organization", mingroup = 5, return = "plot")
one2one_summary(data, hrvar = "Organization", mingroup = 5, return = "plot")
} }
\arguments{ \arguments{
\item{data}{A Standard Person Query dataset in the form of a data frame.} \item{data}{A Standard Person Query dataset in the form of a data frame.}

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

@ -2,7 +2,7 @@
% Please edit documentation in R/workloads_dist.R % Please edit documentation in R/workloads_dist.R
\name{workloads_dist} \name{workloads_dist}
\alias{workloads_dist} \alias{workloads_dist}
\title{Distribution of Work Week Span} \title{Distribution of Work Week Span as a 100\% stacked bar}
\usage{ \usage{
workloads_dist( workloads_dist(
data, data,

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

@ -2,9 +2,12 @@
% Please edit documentation in R/workloads_summary.R % Please edit documentation in R/workloads_summary.R
\name{workloads_summary} \name{workloads_summary}
\alias{workloads_summary} \alias{workloads_summary}
\alias{workloads_sum}
\title{Work Week Span Summary} \title{Work Week Span Summary}
\usage{ \usage{
workloads_summary(data, hrvar = "Organization", mingroup = 5, return = "plot") workloads_summary(data, hrvar = "Organization", mingroup = 5, return = "plot")
workloads_sum(data, hrvar = "Organization", mingroup = 5, return = "plot")
} }
\arguments{ \arguments{
\item{data}{A Standard Person Query dataset in the form of a data frame.} \item{data}{A Standard Person Query dataset in the form of a data frame.}