Description Usage Arguments Value Note Examples
These function turnsbyte notation to numeric using a
byte conversion. Useful for turning the memUsage
column
to numeric.
1 2 3 4 5 6 7 |
units |
A character vector to convert to bytes |
A character vector of size converted from the input. The
attr("unit")
contains the unit of the result.
The following table are used, based on Google Unit converter:
"1b" = 1 bytes,
"1kib" = 1024 bytes,
"1mib" = 1049000 bytes,
"1gib" = 1.074e+9 bytes
"1b" = 1/1024 kib,
"1kib" = 1 kib,
"1mib" = 1024 kib,
"1gib" = 1049000 kib
"1 b" = 1/1.049e+6 mib,
"1 kib" = 1/1024 mib,
"1 mib" = 1 mib,
"1 gib" = 1024 mib
"1b" = 1/1.074e+9 gib,
"1kib" = 1/1.049e+6 gib,
"1mib" = 1/1024 gib,
"1gib" = 1 gib
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.