ac {PRA} | R Documentation |
Actual Cost (AC).
ac(actual_costs, time_period)
actual_costs |
Vector of actual costs incurred at each time period. |
time_period |
Current time period. |
The function returns the Actual Cost (AC) of work completed.
# Set the actual costs and current time period for a toy project.
actual_costs <- c(9000, 18000, 36000, 70000, 100000)
time_period <- 3
# Calculate the AC and print the results.
ac <- ac(actual_costs, time_period)
cat("Actual Cost (AC):", ac, "\n")