Calculate the percentage difference between consecutive segments.

percSeg(ds)

Arguments

ds

A vector of numeric values representing the segments.

Value

A numeric vector of percentage differences.