R/obj_size.R

Defines functions obj_size

Documented in obj_size

#' @title calculate the size of objector
#' @description calculate the size of objector
#' @param x R object
#'
#' @return string
#'
#' @examples
#'
#'
#' @rdname obj_size
#' @export

obj_size <- function(x){
    size <- format(object.size(x), units = "auto")
    return(size)
}
jixing475/manuscriptsJX documentation built on April 20, 2020, 9:55 a.m.