Skip to contents

Basically format.object_size from utils, but vectorized and includes .0

Usage

hbytes(x)

Arguments

x

Number of bytes (integer)

Examples

hbytes(12300)
#> [1] "12.0 Kb"
hbytes(c(12300, 12345))
#> [1] "12.0 Kb" "12.1 Kb"