format_bytes: Format byte sizes for display

View source: R/utils.R

format_bytesR Documentation

Format byte sizes for display

Description

Converts raw byte counts into human-readable strings (e.g. "1.23 MB").

Usage

format_bytes(x)

Arguments

x

Numeric vector of byte sizes.

Value

A character vector with formatted sizes.

Examples

format_bytes(c(1024, 1048576, NA))

datasusr documentation built on Sept. 26, 2026, 1:08 a.m.