getAllowance: Compute the monthly allowance of employee

getAllowanceR Documentation

Compute the monthly allowance of employee

Description

Depending on the attributes of the employee, his or her monthly allowances may include the following:

  1. food

  2. lighting

  3. housing

Usage

getAllowance(theObject)

## S4 method for signature 'Employee'
getAllowance(theObject)

## S4 method for signature 'Staff'
getAllowance(theObject)

## S4 method for signature 'NonStaff'
getAllowance(theObject)

Arguments

theObject

Employee-class object

Value

a data.frame with 12 rows and 3 columns representing the total allowances the employee receives per month

Each row represents a month. The columns are:

ID

character string representing the unique identifier of the real employee

month

integer value representing the month

allowance

numeric value defining the total allowances to be received by the employee

Functions

  • getAllowance(Employee): Compute allowance multiplier

  • getAllowance(Staff): Compute monthly allowance

  • getAllowance(NonStaff): Compute monthly allowance


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