R/gb.R

Defines functions gb

Documented in gb

#' Returns size of object in gigabytes
#'
#' Returns size of object in gigabytes
#' @param x is a data object
#' @keywords organization efficiency
#' @export
#' @examples
#' gb(mtcars)

gb <- function(x) format(object.size(x), units = "GB", standard = "legacy")
Kidapt/keda documentation built on Nov. 23, 2019, 3:35 a.m.