View source: R/download_zenodo.R
human_filesize | R Documentation |
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.
human_filesize(x)
x |
A positive integer, i.e. the number of bytes (B). Can be a vector of file sizes. |
A character vector.
Floris Vanderhaeghe, floris.vanderhaeghe@inbo.be
human_filesize(7845691)
v <- c(12345, 456987745621258)
human_filesize(v)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.