Learn R Programming

PRA (version 0.3.0)

sv: Schedule Variance (SV).

Description

Schedule Variance (SV).

Usage

sv(ev, pv)

Value

The function returns the Schedule Variance (SV) of work completed.

Arguments

ev

Earned Value.

pv

Planned Value.

Examples

Run this code
# Set the BAC, schedule, and current time period for an example project.
bac <- 100000
schedule <- c(0.1, 0.2, 0.4, 0.7, 1.0)
time_period <- 3

# Calculate the PV.
pv <- pv(bac, schedule, time_period)

# Set the actual % complete and calculate the EV.
actual_per_complete <- 0.35
ev <- ev(bac, actual_per_complete)

# Calculate the SV and print the results.
sv <- sv(ev, pv)
cat("Schedule Variance (SV):", sv, "\n")

Run the code above in your browser using DataLab