robinl / costmodelr Goto Github PK
View Code? Open in Web Editor NEWFramework for cost modelling in R
Framework for cost modelling in R
Rather than the pattern like this
add_oneoff_costs <- function(cost_model, oneoff_cost_assumptions) {
# If this is the first time we've called add_oneoff_costs, then register a new module, otherwise append new data
if (!("oneoff_cost" %in% names(cost_model$registered_modules))) {
cost_model$registered_modules$oneoff_cost <- list()
cost_model$registered_modules$oneoff_cost$oneoff_cost_raw <- oneoff_cost_assumptions
# Note we don't process at this point, we just say how to proess.
# Appending is therefore just a case of adding more assumption rows. The only difficulty is the id column.
cost_model$registered_modules$oneoff_cost$process_module <- process_oneoff_costs
} else {
cost_model$registered_modules$oneoff_cost$oneoff_cost_raw %<>%
dplyr::bind_rows(oneoff_cost_assumptions)
}
cost_model
}
instead it appends this oneoff cost to list of registered models, which could include multiple oneof costs. This means we can easily add multiple oneoff costs, but is also a more flexible pattern. So for instance, adding user variable costs multiple times, you might need different num users each time. By treating each add operation independently, it is more flexible
When the user specifies day rates in the rate card, these get multiplied by 7 rather than 5.
Somewhere - possible in this or another repository - we want a template project, with template assumptions files read to be edited
This will mean the user can later create charts with labeled axis that show how the quantity consumed or quantity in use varies through time
run_cost_model
should erase previous results rather than causing duplication
When trying to install the costsmodelr package i am encountering an error "ERROR: dependency 'hierarchicalbubble' is not available for package 'costmodelr'". I can't seem to find any documentation that shows this package even exists or previously existed.
The things you should be able to control are:
(1) When date does this cost start?
(2) What is the initial quantity at the time the costs start?
(3) How does the quantity increase through time, and how is this related to the number of users?
(4) Is there a fixed quantity increase associated with a new user?
At the moment there's no way of adding costs which are fixed, but scale with the number of users - such as if each user needs 4gb of EBS pre-allocated
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.