assignPrio: Assign pool by priority

View source: R/mhDB_fun_assignPrio.R

assignPrioR Documentation

Assign pool by priority

Description

This is used in getmhDB. Assignment is done in the following order:

  1. Any employee with a designated cost center is assigned.

  2. Any regular or probationary employee is assigned.

  3. All employees are assigned.

Usage

assignPrio(listT, listR)

Arguments

listT

list of theoretical employees created from empReq

listR

list of real employees created fro empPool

Value

a list containing the following:

  1. man hour database resulting from the assignment This is also merged and described well in getmhDB.

  2. list of Employee-class objects representing the theoretical employees with assigned man hours

  3. list of Employee-class objects representing the real employees with assigned man hours

  4. data.frame containing un-assigned man hours of the theoretical employees

    This is composed of the following columns:

    month

    integer value representing the month

    ID

    character string representing the employee requirement

    mhType

    man hour type

    mh

    integer value representing the unassigned man hours

  5. data.frame containing un-assigned man hours of the real employees

    This is composed of the following columns:

    month

    integer value representing the month

    ID

    character string representing the employee requirement

    mhType

    man hour type

    mh

    integer value representing the unassigned man hours

  6. man hour database resulting from discarding OT hours. The structure is similar to what is being returned by getmhDB.


basilrabi/mansched documentation built on May 18, 2023, 1:29 p.m.