Description Usage Arguments Details Value Examples
This function is used by Repair
to repair all components at a
particular grade.
1 | repairGrade(element.data, grade)
|
element.data |
An element-level data frame, with a |
grade |
Either |
Components are sorted by their proportion at the given grade. They are then
repaired in descending order until the money given by budget
runs out.
The element-level data frame with repairs completed, and a numeric amount stating the remaining funds as an attribute.
1 2 3 4 5 6 | elements <- simulated_elements
# the input to repairGrade needs a value for the "repair_money" attribute.
attr(elements, "repair_money") <- 10000
blockbuster2:::repairGrade(elements, "A")
blockbuster2:::repairGrade(elements, "C")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.