natural_size: Convert bytes to a more natural representation

Description Usage Arguments Examples

View source: R/filesize.R

Description

Convert bytes to a more natural representation

Usage

1
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

1

humanize documentation built on May 2, 2019, 6:39 a.m.