initEmpReq: Initialize Employee Requirement

View source: R/data_fun_import.R

initEmpReqR Documentation

Initialize Employee Requirement

Description

Initializes the list of the employee requirements and their corresponding man hours.

Usage

initEmpReq(empReq, sched, hol = NA, year = NA)

Arguments

empReq

a data.frame with 7 columns

Each row represents an employee requirement for an activity. The columns are:

activity

character string representing the assigned activity

Activities listed in this data.frame must be present in workSched.

personnelClass

character string representing the Employee-class sub-class to be applied

quantity

integer value representing the number of required personnel for the employee requirement

spareFactor

numeric value of at least 1

This is used as man hours multiplier for deploying a spare personnel. For an activity involving continuous operation, a spare personnel is usually deployed to prevent accidents caused by fatigue. The spareFactor is also used to compensate for the absenteeism of employees.

equipment

character string representing the equipment type to be used

This only applies to Operator-class personnel.

OT

integer value defining the number of working hours scheduled for more than 8 hours per shift

This only applies to NonStaff-class personnel.

costCenter

character string representing the cost center wherein all personnel costs of this employee requirement will be charged

sched

a data.frame with 13 columns

Each row represents one activity. The 1st column is vector of character strings representing the name of activity. The 2nd column up to the 13th column are all integer vectors representing the number of days an activity is scheduled for every month. The column names from the 2nd column up to the 13th column are month names. For office activities or for continuous activities, their corresponding row may be left blank.

hol

a data.frame similar to holidays

year

integer value representing the year to be budgeted

Value

a list of 2:

  1. a list of theoretical employees
    Each element of the list is an Employee-class object. Theoretical employees do not have rest days.

  2. sanitized empReq


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