Skip to contents

Availability.

Usage

avail(unavailTime, totalTime)

Arguments

unavailTime

Unavailable Time. A numeric value representing the unavailable time or a numeric vector of unavailable times.

totalTime

Total Time. A numeric value representing the total time for a given period or a numeric vector of time periods

Value

The function returns a numeric value representing the availability for a given period.

Examples

unavail <- 100
total <- 1000
avail(unavail, total)
#> [1] 0.9