byte_format | R Documentation |
Bytes formatter: convert to byte measurement and display symbol.
byte_format(symbol = "auto", units = "binary", only_highest = TRUE)
Kb(x)
Mb(x)
Gb(x)
bytes(x, symbol = "auto", units = c("binary", "si"), only_highest = FALSE)
symbol |
byte symbol to use. If " |
units |
which unit base to use, " |
only_highest |
Whether to use the unit of the highest number or each number uses its own unit. |
x |
a numeric vector to format |
a function with three parameters, x
, a numeric vector that
returns a character vector, symbol
a single or a vector of byte
symbol(s) (e.g. "Kb
") desired and the measurement units
(traditional binary
or si
for ISI metric units).
Units of Information (Wikipedia) : http://en.wikipedia.org/wiki/Units_of_information
byte_format()(sample(3000000000, 10))
bytes(sample(3000000000, 10))
Kb(sample(3000000000, 10))
Mb(sample(3000000000, 10))
Gb(sample(3000000000, 10))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.