getmhDB: Compute man hours database

View source: R/mhDB_fun_getmhDB.R

getmhDBR Documentation

Compute man hours database

Description

Computes a man hours database throughout the year to be budgeted.

Usage

getmhDB(empReq, empPool, sched, year = NA, hol = NA, forecast = FALSE)

Arguments

empReq

a data.frame similar to empReq in initEmpReq

empPool

a data.frame similar to empPool in initEmpPool

sched

a data.frame similar to sched in initEmpReq

year

an integer value representing the year to be budgeted

hol

a data.frame similar to holidays

forecast

logical value
Compute cost for forecast?

Value

a list containing the following:

  1. data.frame representing the man hours database of the assigned employees

    This is composed of the following columns:

    ID

    character string representing the unique identifier of the real employee

    reqID

    character string representing the unique identifier of the real employee

    mh

    integer value representing the man hours assigned

    mhType

    character string representing the man hours type assigned (see assignEmp)

    month

    integer value representing the month

    np

    integer value representing the man hours with night premium pay

    costCenter

    character string representing the cost center wherein the man hours is charged

    equipment

    character string of the equipment type should the required personnel is an operator

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

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

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

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

  6. 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

  7. 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

  8. data.frame representing the man hours database of the employees with discarded OT hours

    This is composed of the following columns:

    ID

    character string representing the unique identifier of the real employee

    reqID

    character string representing the unique identifier of the real employee

    mh

    integer value representing the man hours assigned

    mhType

    character string representing the man hours type assigned (see assignEmp)

    month

    integer value representing the month

    np

    integer value representing the man hours with night premium pay

    costCenter

    character string representing the cost center wherein the man hours is charged


basilrabi/mansched2 documentation built on May 19, 2023, 9:51 p.m.