Learn R Programming

humanize (version 0.2.0)

natural_size: Convert bytes to a more natural representation

Description

Convert bytes to a more natural representation

Usage

natural_size(bytes, suffix_type = "decimal", fmt = "%.1f")

Arguments

bytes

Number of bytes

suffix_type

One of 'decimal', 'binary', 'gnu'

fmt

Extra number formatting

Examples

Run this code
# NOT RUN {
natural_size(3000)
# }

Run the code above in your browser using DataLab