Title: | Solve Erlang-C Model |
---|---|
Description: | Provides a set of functions to solve Erlang-C model. The Erlang C formula was invented by the Danish Mathematician A.K. Erlang and is used to calculate the number of advisors and the service level. |
Authors: | Damonsoul [aut, cre] |
Maintainer: | Damonsoul <[email protected]> |
License: | MIT + file LICENSE |
Version: | 0.1.0 |
Built: | 2024-12-06 01:33:29 UTC |
Source: | CRAN |
Calculate Required Number of Agents This function calculates the required number of agents to achieve a specified service level and occupancy.
calculate_agents( call_count, call_period, avg_handle_time, target_anser_time, require_service_level, max_occupancy, shrinkage, max_agents = NULL )
calculate_agents( call_count, call_period, avg_handle_time, target_anser_time, require_service_level, max_occupancy, shrinkage, max_agents = NULL )
call_count |
Numeric. The total number of incoming calls. |
call_period |
Duration. The time period over which calls are counted. |
avg_handle_time |
Duration. The average time taken to handle a call. |
target_anser_time |
Duration. The targeted time to answer a call. |
require_service_level |
Numeric. The required service level. |
max_occupancy |
Numeric. The maximum allowed occupancy level . |
shrinkage |
Numeric. The shrinkage factor to account for non-productive time . |
max_agents |
Integer. The maximum number of agents allowed. |
A list containing the calculated metrics and the number of agents required.
calculate_agents( call_count = 100, call_period = lubridate::duration(30, "minutes"), avg_handle_time = lubridate::duration(180, "seconds"), target_anser_time = lubridate::duration(20, "seconds"), require_service_level = 0.8, max_occupancy = 0.85, shrinkage = 0.3, max_agents = 200 )
calculate_agents( call_count = 100, call_period = lubridate::duration(30, "minutes"), avg_handle_time = lubridate::duration(180, "seconds"), target_anser_time = lubridate::duration(20, "seconds"), require_service_level = 0.8, max_occupancy = 0.85, shrinkage = 0.3, max_agents = 200 )
Calculate the performance metrics of an Erlang C model with n
agents.
erlang_c(call_count, call_period, avg_handle_time, target_anser_time, n)
erlang_c(call_count, call_period, avg_handle_time, target_anser_time, n)
call_count |
Numeric. The total number of incoming calls. |
call_period |
Duration. The time period over which calls are counted. |
avg_handle_time |
Duration. The average time taken to handle a call. |
target_anser_time |
Duration. The targeted time to answer a call. |
n |
Integer. The number of agents. |
A list containing the calculated metrics.
erlang_c( call_count = 100, call_period = lubridate::duration(30, "minutes"), avg_handle_time = lubridate::duration(180, "seconds"), target_anser_time = lubridate::duration(20, "seconds"), n = 14 )
erlang_c( call_count = 100, call_period = lubridate::duration(30, "minutes"), avg_handle_time = lubridate::duration(180, "seconds"), target_anser_time = lubridate::duration(20, "seconds"), n = 14 )
This function creates a Shiny app for calculating Erlang C metrics.
erlang_c_app(language = "en")
erlang_c_app(language = "en")
language |
Character. The language to use for translations (default: "en"). |
A Shiny app object.
This dataset contains translations for all the strings used in the app. It is used to create a Shiny string translation interface.
translations
translations
A data frame with variables:
The key of the string to translate
The translation in English
The translation in Chinese
Local