wpa/man/extract_hr.Rd

43 строки
1.2 KiB
R

% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/extract_hr.R
\name{extract_hr}
\alias{extract_hr}
\title{Extract HR attribute variables}
\usage{
extract_hr(data, max_unique = 50, return = "names")
}
\arguments{
\item{data}{A data frame to be passed through.}
\item{max_unique}{A numeric value representing the maximum
number of unique values to accept for an HR attribute. Defaults to 50.}
\item{return}{Character string with values "names" (default)
or "vars" to determine whether the function returns a character
vector of variable names or a data frame containing the HR
attributes.}
}
\description{
This function uses a combination of variable class,
number of unique values, and regular expression matching
to extract HR / organisational attributes from a data frame.
}
\examples{
sq_data \%>\% extract_hr(return = "names")
sq_data \%>\% extract_hr(return = "vars")
}
\seealso{
Other General:
\code{\link{create_bar_asis}()},
\code{\link{create_bar}()},
\code{\link{create_boxplot}()},
\code{\link{create_bubble}()},
\code{\link{create_scatter}()},
\code{\link{cut_hour}()},
\code{\link{hrvar_count}()},
\code{\link{identify_outlier}()}
}
\concept{General}