Skip to contents

Computes a range that aligns with a given bin width, rounding outwards to ensure coverage.

Usage

range_width(x, width)

Arguments

x

A numeric vector.

width

Numeric. Desired bin width.

Value

A numeric vector of length 2 indicating start and end of adjusted range.