hierarchyWide: hierarchyWide

Description Usage Arguments Value Examples

View source: R/hierarchyWide.R

Description

This function takes employee and supervisor identifiers (name, ID, etc.) and returns a wide data frame consisting of a single row per employee and their respective reporting hierarchy in a wide format.

The resulting format is very useful for subsequent aggregation of employee data for a particular leadership tree.

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","Julie","Susan")
supv = c("Julie","Julie","Susan","George")
hierarchyWide(ee,supv)

dalekube/hR documentation built on Feb. 13, 2018, 3:04 p.m.