зеркало из https://github.com/microsoft/wpa.git
56 строки
1.7 KiB
R
56 строки
1.7 KiB
R
% Generated by roxygen2: do not edit by hand
|
|
% Please edit documentation in R/identify_privacythreshold.R
|
|
\name{identify_privacythreshold}
|
|
\alias{identify_privacythreshold}
|
|
\title{Identify groups under privacy threshold}
|
|
\usage{
|
|
identify_privacythreshold(
|
|
data,
|
|
hrvar = extract_hr(data),
|
|
mingroup = 5,
|
|
return = "table"
|
|
)
|
|
}
|
|
\arguments{
|
|
\item{data}{A Standard Person Query dataset in the form of a data frame.}
|
|
|
|
\item{hrvar}{A list of HR Variables to consider in the scan.
|
|
Defaults to all HR attributes identified.}
|
|
|
|
\item{mingroup}{Numeric value setting the privacy threshold / minimum group size.
|
|
Defaults to 5.}
|
|
|
|
\item{return}{A character vector specifying what to return.
|
|
Valid values include "table" (default) and "text" (text)}
|
|
}
|
|
\value{
|
|
Returns a ggplot object by default, where 'plot' is passed in \code{return}.
|
|
When 'table' is passed, a summary table is returned as a data frame.
|
|
}
|
|
\description{
|
|
This function scans a standard query output for groups with of employees under the privacy threshold.
|
|
The method consists in reviewing each individual HR attribute, and count the distinct people within each group.
|
|
}
|
|
\seealso{
|
|
Other Data Validation:
|
|
\code{\link{check_query}()},
|
|
\code{\link{flag_ch_ratio}()},
|
|
\code{\link{flag_em_ratio}()},
|
|
\code{\link{flag_extreme}()},
|
|
\code{\link{flag_outlooktime}()},
|
|
\code{\link{hr_trend}()},
|
|
\code{\link{hrvar_count_all}()},
|
|
\code{\link{hrvar_count}()},
|
|
\code{\link{identify_holidayweeks}()},
|
|
\code{\link{identify_inactiveweeks}()},
|
|
\code{\link{identify_nkw}()},
|
|
\code{\link{identify_outlier}()},
|
|
\code{\link{identify_query}()},
|
|
\code{\link{identify_tenure}()},
|
|
\code{\link{remove_outliers}()},
|
|
\code{\link{subject_validate_report}()},
|
|
\code{\link{subject_validate}()},
|
|
\code{\link{track_HR_change}()}
|
|
}
|
|
\concept{Data Validation}
|