initREmployee | R Documentation |
Initializes employee data and its working hours. This function can be applied only to real employees. Real employees represent the actual manpower pool.
initREmployee(
theObject,
ID,
name,
designation,
attendance = rep(1, times = 12),
costCenter = "NONE",
status = "reg",
cBegin,
cEnd = NA,
inHouse = FALSE,
restday = "Sunday",
hol,
RF = FALSE,
equipment,
OT = 3,
d.rd = rep(NA, times = 12),
d.ho = rep(NA, times = 12),
d.rh = rep(NA, times = 12),
dcc = as.character(rep(NA, times = 12)),
forecast = FALSE,
field = TRUE,
dependents = NA,
VL = NA,
SL = NA
)
## S4 method for signature 'Employee'
initREmployee(
theObject,
ID,
name,
designation,
attendance = rep(1, times = 12),
costCenter = "NONE",
status = "reg",
cBegin,
cEnd = NA,
inHouse = FALSE,
hol,
d.rd = rep(NA, times = 12),
d.ho = rep(NA, times = 12),
d.rh = rep(NA, times = 12),
dcc = as.character(rep(NA, times = 12)),
forecast = FALSE,
field = TRUE,
dependents = NA,
VL = NA,
SL = NA
)
## S4 method for signature 'Staff'
initREmployee(
theObject,
ID,
name,
designation,
attendance = rep(1, times = 12),
costCenter = "NONE",
status = "reg",
cBegin,
cEnd = NA,
inHouse = FALSE,
hol,
d.rd = rep(NA, times = 12),
d.ho = rep(NA, times = 12),
d.rh = rep(NA, times = 12),
dcc = as.character(rep(NA, times = 12)),
forecast = FALSE,
field = TRUE,
dependents = NA,
VL = NA,
SL = NA
)
## S4 method for signature 'NonStaff'
initREmployee(
theObject,
ID,
name,
designation,
attendance = rep(1, times = 12),
costCenter = "NONE",
status = "reg",
cBegin,
cEnd = NA,
inHouse = FALSE,
hol,
OT = 3,
d.rd = rep(NA, times = 12),
d.ho = rep(NA, times = 12),
d.rh = rep(NA, times = 12),
dcc = as.character(rep(NA, times = 12)),
forecast = FALSE,
field = TRUE,
dependents = NA,
VL = NA,
SL = NA
)
## S4 method for signature 'Clerk'
initREmployee(
theObject,
ID,
name,
designation,
attendance = rep(1, times = 12),
costCenter = "NONE",
status = "reg",
cBegin,
cEnd = NA,
inHouse = FALSE,
hol,
RF = FALSE,
OT = 3,
d.rd = rep(NA, times = 12),
d.ho = rep(NA, times = 12),
d.rh = rep(NA, times = 12),
dcc = as.character(rep(NA, times = 12)),
forecast = FALSE,
field = TRUE,
dependents = NA,
VL = NA,
SL = NA
)
## S4 method for signature 'OperationPersonnel'
initREmployee(
theObject,
ID,
name,
designation,
attendance = rep(1, times = 12),
costCenter = "NONE",
status = "reg",
cBegin,
cEnd = NA,
inHouse = FALSE,
restday = "Sunday",
hol,
OT = 3,
d.rd = rep(NA, times = 12),
d.ho = rep(NA, times = 12),
d.rh = rep(NA, times = 12),
dcc = as.character(rep(NA, times = 12)),
forecast = FALSE,
field = TRUE,
dependents = NA,
VL = NA,
SL = NA
)
## S4 method for signature 'Technical'
initREmployee(
theObject,
ID,
name,
designation,
attendance = rep(1, times = 12),
costCenter = "NONE",
status = "reg",
cBegin,
cEnd = NA,
inHouse = FALSE,
restday = "Sunday",
hol,
OT = 3,
d.rd = rep(NA, times = 12),
d.ho = rep(NA, times = 12),
d.rh = rep(NA, times = 12),
dcc = as.character(rep(NA, times = 12)),
forecast = FALSE,
field = TRUE,
dependents = NA,
VL = NA,
SL = NA
)
## S4 method for signature 'Supervisor'
initREmployee(
theObject,
ID,
name,
designation,
attendance = rep(1, times = 12),
costCenter = "NONE",
status = "reg",
cBegin,
cEnd = NA,
inHouse = FALSE,
restday = "Sunday",
hol,
OT = 3,
d.rd = rep(NA, times = 12),
d.ho = rep(NA, times = 12),
d.rh = rep(NA, times = 12),
dcc = as.character(rep(NA, times = 12)),
forecast = FALSE,
field = TRUE,
dependents = NA,
VL = NA,
SL = NA
)
## S4 method for signature 'Laborer'
initREmployee(
theObject,
ID,
name,
designation,
attendance = rep(1, times = 12),
costCenter = "NONE",
status = "reg",
cBegin,
cEnd = NA,
inHouse = FALSE,
restday = "Sunday",
hol,
OT = 3,
d.rd = rep(NA, times = 12),
d.ho = rep(NA, times = 12),
d.rh = rep(NA, times = 12),
dcc = as.character(rep(NA, times = 12)),
forecast = FALSE,
field = TRUE,
dependents = NA,
VL = NA,
SL = NA
)
## S4 method for signature 'Operator'
initREmployee(
theObject,
ID,
name,
designation,
attendance = rep(1, times = 12),
costCenter = "NONE",
status = "reg",
cBegin,
cEnd = NA,
inHouse = FALSE,
restday = "Sunday",
hol,
equipment,
OT = 3,
d.rd = rep(NA, times = 12),
d.ho = rep(NA, times = 12),
d.rh = rep(NA, times = 12),
dcc = as.character(rep(NA, times = 12)),
forecast = FALSE,
field = TRUE,
dependents = NA,
VL = NA,
SL = NA
)
theObject |
|
ID |
character string representing the employee's unique identifier |
name |
character vector representing the name of employee |
designation |
character string representing designation of employee |
attendance |
numeric value used to account for the absenteeism of the employee This may be used as correction factor to estimate the workable man hours of an employee. |
costCenter |
character vector containing the cost centers wherein the employee will be charged |
status |
character string representing the employment status of the employee The accepted values are |
cBegin |
character string defining the date wherein the employment contract of the employee began The accepted format is |
cEnd |
character string defining the date wherein the employment contract of the employee will end The accepted format is |
inHouse |
logical value |
restday |
character string defining the day of the week wherein the employee is not required to report to work |
hol |
a This contains all the holidays in the year to be budgeted. |
RF |
logical value |
equipment |
character string representing the equipment types which the employee was given authority to operate Equipment types are separated by spaces and must be in upper case. |
OT |
integer value defining the budgeted overtime hours |
d.rd |
integer value defining the number of rest days the employee is budgeted to report to work per month |
d.ho |
integer value defining the number of exclusive holidays the employee is budgeted to report to work per month |
d.rh |
integer value defining the number of rest days during a holiday the employee is budgeted to report to work per month |
dcc |
character string defining the cost center wherein the excess regular man hours of the employee will be charged |
forecast |
logical value |
field |
logical value |
dependents |
integer vector of length 12 |
VL |
numeric value for the number of vacation leave credits to be assigned |
SL |
numeric value for the number of sick leave credits to be assigned |
an Employee-class
object
initREmployee(Employee)
: Initialize ID, name, designation, attendance,
costCenter, status, cBegin, cEnd, inHouse, restday and calDays
(see getCalDays
)
initREmployee(Staff)
: Return only the Staff-class
object
initREmployee(NonStaff)
: Initialize regOT
initREmployee(Clerk)
: Initialize RF and return only the
Clerk-class
object
initREmployee(OperationPersonnel)
: Initialize rd, rdOT, sh, shOT, lh, lhOT, nh, nhOT,
rs, rsOT, rl, rlOT, rn, rnOT. Return only the
OperationPersonnel-class
object.
initREmployee(Technical)
: Return only the Technical-class
object. All Technical-class
personnel are not rank and file.
initREmployee(Supervisor)
: Return only the
Supervisor-class
object. All Supervisor-class
employees are not rank and file
initREmployee(Laborer)
: Return only the
Laborer-class
object. All Laborer-class
employees are rank and file
initREmployee(Operator)
: Initialize equipment
Operator-class
personnel may be authorized to operate multiple
types of equipment. In Taganito Mining Corporation, some of the equipment
types are listed in validEquipment
.
All Operator-class
employees are rank and file.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.