FlowSummaries {makeFlow}R Documentation

FlowSummaries()

Description

Outputs a list of objects of class tbl_df containing values presented in a makeFlow() diagram utilizing the same data and classFields arguments.

Usage

FlowSummaries(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 the makeFlow() diagram. Each element must be a string.

Details

Outputs tables with standard naming convention of Flow_Summary_x. For example, Flow_Summary_1 provides the counts and frequencies of each category (gate) from the first column specified in classFields moving to each of the categories (gates) in the second column listed in classFields.

Note

Relies on Hadley Wickham's dplyr package.

Author(s)

Alex J. Krebs

Examples

## myFlows <- FlowSummaries(data= shelters, classFields= c("loc","Jan","Feb","Mar"))
## Flow_Summary_2 will show the counts and percentages from
## "Jan" categories that move to the categories in "Feb"

[Package makeFlow version 1.0.2 Index]