size: Digital storage size conversion See object.size

View source: R/utils_rounding.R

sizeR Documentation

Digital storage size conversion See object.size

Description

Digital storage size conversion See object.size

Vectorized version of size

Usage

size(
  x,
  in_unit = "b",
  out_unit = c("b", "Kb", "Mb", "Gb", "Tb", "Pb", "Eb", "Zb", "Yb")[3]
)

size_(
  x,
  in_unit = "b",
  out_unit = c("b", "Kb", "Mb", "Gb", "Tb", "Pb", "Eb", "Zb", "Yb")[3]
)

Arguments

x

(numeric)

in_unit

(character) units of x

out_unit

(character) units of output number Default: Mb. See object.size for the options.

standard

(character)

Value

(numeric) value in out_units

See Also

size_

Other rounding: magnitude_order(), magnitude_triplet(), num2str(), num2str_vec(), num_chr_suffi, round_to(), unit_find(), unit_modify(), unit_modify_vec(), unit_string()

Examples

size(50, "Mb")
size(50, "Gb")
size(50, "Gb", "Mb")

yogat3ch/UU documentation built on May 31, 2024, 10:14 p.m.