GateSummaries {makeFlow} | R Documentation |
GateSummaries()
Description
Outputs a list of objects of class tbl_df containing the values in a makeFlow() diagram utilizing the same data and classFields arguments.
Usage
GateSummaries(data, classFields)
Arguments
data |
An object of class data.frame in which all specified classFields (column names) can be found. |
classFields |
A vector of the column names intended to be represented in a makeFlow() diagram. Each element must be a string. |
Details
Outputs tables with standard naming convention of Gate_Summary_x. For example, Gate_Summary_1 provides the counts and frequencies of each category within the first column specified in the classFields argument.
Note
Relies on Hadley Wickham's dplyr package.
Author(s)
Alex J. Krebs
Examples
## myGates <- GateSummaries(data = shelters, classFields = c("loc","Jan","Feb","Mar"))
## Gate_Summary_2 will show the count and percentage of observations
## within each category of the column "Jan"
[Package makeFlow version 1.0.2 Index]