initEmpPool: Initialize Employee Pool

View source: R/data_fun_import.R

initEmpPoolR Documentation

Initialize Employee Pool

Description

Initializes the list of the pool of employees and their corresponding maximum man hours which can be assigned to any activity.

Usage

initEmpPool(empPool, hol = NA, year = NA, forecast = FALSE)

Arguments

empPool

a data.frame with 87 columns

Each row represents a real employee. The columns are:

ID

character string representing the employee's unique identifier

name

character string representing the employee's name

designation

character string representing the employee's designation

personnelClass

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

field

logical value
Is the employee always in the field?

equipment

character string representing the equipment types which the employee was authorized to operate.

Each equipment type must be separated by a space.

costCenter

character string representing the preferred cost center wherein the employee shall be assigned.

Multiple cost centers must be separated by spaces.

status

character string representing the employment status of the employee

Accepted values are "reg" (regular), "pro" (probationary), 'sea' (seasonal), and 'age' (agency).

cBegin

character string representing the date of employment of personnel

The accepted format is ISO 8601 which expresses a day as "yyyy-mm-dd".

cEnd

character string representing the date of termination employment of the seasonal employee

The accepted format is ISO 8601 which expresses a day as "yyyy-mm-dd".

inHouse

logical value
Is the employee's accommodation given by the company?

restday

character string representing the day of the week wherein the employee is not required to report to work

isRF

logical value
Is the employee rank and file?

d.rd_1

integer value defining how many rest days the employee can report to work on January

d.rd_2

integer value defining how many rest days the employee can report to work on February

d.rd_3

integer value defining how many rest days the employee can report to work on March

d.rd_4

integer value defining how many rest days the employee can report to work on April

d.rd_5

integer value defining how many rest days the employee can report to work on May

d.rd_6

integer value defining how many rest days the employee can report to work on June

d.rd_7

integer value defining how many rest days the employee can report to work on July

d.rd_8

integer value defining how many rest days the employee can report to work on August

d.rd_9

integer value defining how many rest days the employee can report to work on September

d.rd_10

integer value defining how many rest days the employee can report to work on October

d.rd_11

integer value defining how many rest days the employee can report to work on November

d.rd_12

integer value defining how many rest days the employee can report to work on December

d.ho_1

integer value defining how many holidays the employee can report to work on January

d.ho_2

integer value defining how many holidays the employee can report to work on February

d.ho_3

integer value defining how many holidays the employee can report to work on March

d.ho_4

integer value defining how many holidays the employee can report to work on April

d.ho_5

integer value defining how many holidays the employee can report to work on May

d.ho_6

integer value defining how many holidays the employee can report to work on June

d.ho_7

integer value defining how many holidays the employee can report to work on July

d.ho_8

integer value defining how many holidays the employee can report to work on August

d.ho_9

integer value defining how many holidays the employee can report to work on September

d.ho_10

integer value defining how many holidays the employee can report to work on October

d.ho_11

integer value defining how many holidays the employee can report to work on November

d.ho_12

integer value defining how many holidays the employee can report to work on December

d.rh_1

integer value defining how many rest days on holidays the employee can report to work on January

d.rh_2

integer value defining how many rest days on holidays the employee can report to work on February

d.rh_3

integer value defining how many rest days on holidays the employee can report to work on March

d.rh_4

integer value defining how many rest days on holidays the employee can report to work on April

d.rh_5

integer value defining how many rest days on holidays the employee can report to work on May

d.rh_6

integer value defining how many rest days on holidays the employee can report to work on June

d.rh_7

integer value defining how many rest days on holidays the employee can report to work on July

d.rh_8

integer value defining how many rest days on holidays the employee can report to work on August

d.rh_9

integer value defining how many rest days on holidays the employee can report to work on September

d.rh_10

integer value defining how many rest days on holidays the employee can report to work on October

d.rh_11

integer value defining how many rest days on holidays the employee can report to work on November

d.rh_12

integer value defining how many rest days on holidays the employee can report to work on December

dcc_1

character string representing the cost center wherein the idle hours of the employee will be charged on January

dcc_2

character string representing the cost center wherein the idle hours of the employee will be charged on February

dcc_3

character string representing the cost center wherein the idle hours of the employee will be charged on March

dcc_4

character string representing the cost center wherein the idle hours of the employee will be charged on April

dcc_5

character string representing the cost center wherein the idle hours of the employee will be charged on May

dcc_6

character string representing the cost center wherein the idle hours of the employee will be charged on June

dcc_7

character string representing the cost center wherein the idle hours of the employee will be charged on July

dcc_8

character string representing the cost center wherein the idle hours of the employee will be charged on August

dcc_9

character string representing the cost center wherein the idle hours of the employee will be charged on September

dcc_10

character string representing the cost center wherein the idle hours of the employee will be charged on October

dcc_11

character string representing the cost center wherein the idle hours of the employee will be charged on November

dcc_12

character string representing the cost center wherein the idle hours of the employee will be charged on December

dependents_1

number of dependents in January

dependents_2

number of dependents in February

dependents_3

number of dependents in March

dependents_4

number of dependents in April

dependents_5

number of dependents in May

dependents_6

number of dependents in June

dependents_7

number of dependents in July

dependents_8

number of dependents in August

dependents_9

number of dependents in September

dependents_10

number of dependents in October

dependents_11

number of dependents in November

dependents_12

number of dependents in December

VL

numeric value representing the number of vacation leave credits

SL

numeric value representing the number of sick leave credits

a_1

numeric value representing the attendance rate of employee on January

a_2

numeric value representing the attendance rate of employee on February

a_3

numeric value representing the attendance rate of employee on March

a_4

numeric value representing the attendance rate of employee on April

a_5

numeric value representing the attendance rate of employee on May

a_6

numeric value representing the attendance rate of employee on June

a_7

numeric value representing the attendance rate of employee on July

a_8

numeric value representing the attendance rate of employee on August

a_9

numeric value representing the attendance rate of employee on September

a_10

numeric value representing the attendance rate of employee on October

a_11

numeric value representing the attendance rate of employee on November

a_12

numeric value representing the attendance rate of employee on December

hol

a data.frame similar to holidays

year

integer value representing the year to be budgeted

forecast

logical value
Compute cost for forecast?

Value

list of of 2:

  1. a list of real employees
    Each element of the list is an Employee-class object.

  2. sanitized empPool


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