human_filesize {zen4R} | R Documentation |
Human-readable binary file size
Description
Takes an integer (referring to number of bytes) and returns an optimally human-readable binary-prefixed byte size (KiB, MiB, GiB, TiB, PiB, EiB). The function is vectorised.
Usage
human_filesize(x)
Arguments
x |
A positive integer, i.e. the number of bytes (B). Can be a vector of file sizes. |
Value
A character vector.
Author(s)
Floris Vanderhaeghe, floris.vanderhaeghe@inbo.be
[Package zen4R version 0.10.2 Index]