hierarchyWide: hierarchyWide

Description Usage Arguments Value Examples

View source: R/hierarchyWide.R

Description

This function transforms a standard set of employee and supervisor identifiers into a wide format with complete hierarchies. The resulting data can be aggregated by a particular person (i.e. include everyone who rolls up to "Julie") to include all direct and indirect reports.

Usage

1
hierarchyWide(ee, supv)

Arguments

ee

A list of values representing employees (e.g. employee IDs).

supv

A list of values representing the supervisors of the employees. These values should be of the same type as the employee values.

Value

data frame

Examples

1
2
3
ee = c("Dale","Bob","Jill","Mark","Julie","Andrea","Susan")
supv = c("Julie","Julie","Julie","Andrea","Susan","Susan","George")
hierarchyWide(ee,supv)

dalekube/hR documentation built on Nov. 29, 2018, 1:18 a.m.