assignEmp: Assign an employee

View source: R/RcppExports.R

assignEmpR Documentation

Assign an employee

Description

Man hours from an Employee-class object representing a real employee is assigned to the man hours from an Employee-class object representing another employee (manpower requirement). During successful assignment, the man hours of both Employee-class objects are reduced.

Usage

assignEmp(empT, empR, selfAssign = FALSE, debug = FALSE)

Arguments

empT

an Employee-class object representing a theoretical employee

empR

an Employee-class object representing a real employee

selfAssign

boolean

Is the employee being self-assigned? Self assigning means that the two arguments above points to the same object.

debug

logical flag for debugging

Value

a data.frame containing the man hours database resulting from the employee assignment. This is consisted of the following columns:

ID

character string representing the unique identifier of the real employee

reqID

character string representing the unique identifier of the theoretical/requirement employee

mh

integer value representing the man hours assigned

mhType

character string representing the man hour type

mhType can be one of the following:

reg

working hours not more than 8 hours during a regular day

rd

working hours not more than 8 hours during a rest day

sh

working hours not more than 8 hours during a special holiday

lh

working hours not more than 8 hours during a legal holiday

nh

working hours not more than 8 hours during a negotiated holiday

rs

working hours not more than 8 hours during a rest day on a special holiday

rl

working hours not more than 8 hours during a rest day on a legal holiday

rn

working hours not more than 8 hours during a rest day on a negotiated holiday

regOT

working hours more than 8 hours during a regular day

rdOT

working hours more than 8 hours during a rest day

shOT

working hours more than 8 hours during a special holiday

lhOT

working hours more than 8 hours during a legal holiday

nhOT

working hours more than 8 hours during a negotiated holiday

rsOT

working hours more than 8 hours during a rest day on a special holiday

rlOT

working hours more than 8 hours during a rest day on a legal holiday

rnOT

working hours more than 8 hours during a rest day on a negotiated holiday

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


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