Learn R Programming

PRA (version 0.3.0)

ac: Actual Cost (AC).

Description

Actual Cost (AC).

Usage

ac(actual_costs, time_period)

Value

The function returns the Actual Cost (AC) of work completed.

Arguments

actual_costs

Vector of actual costs incurred at each time period.

time_period

Current time period.

Examples

Run this code
# 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")

Run the code above in your browser using DataLab