A given amount of money (
rebuild_monies) is invested in rebuilding
blockbuster_tibble, passed as an arguement to the function.
This is dependent on the
block_rebuild_cost and the
a blockbuster dataframe or tibble.
a vector of length one.
Outputs a blockbuster_tibble after spending
rebuild_monies on a finite
number of blocks. Rebuilding a block converts all it's building components
back to grade N, making it as new. The rebuilding decision making is based on
a summarised sorted list of blocks, sorted by the ratio of the total cost of repairs
divided by the rebuild cost of the block (this is calculated in
As this ratio approaches one it suggests the
cost of repairs are equivalent to building a new block! Using the available funding
rebuild_monies we systematically work through and rebuild each block based
on our sorted list until all the money is used up. If a block is to expensive to rebuild,
we move on and attempt to rebuild the next one. If our
rebuild_monies is less than
the cheapest block to repair we stop trying to rebuild. Thus money can be wasted. Upon
unit_area must be re-estimated for each building component thus the
areafy2 function is called internally. If
rebuild_monies are zero
(the default) then the rebuilding is skipped and the
is the output.
blockbuster_tibble that has had blocks rebuilt (or not if
rebuild_monies are 0).
1 2 3
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.