object_size_in_env: Get size of objects in environment

View source: R/object_size_in_env.R

object_size_in_envR Documentation

Get size of objects in environment

Description

Creates a sorted data.table with the size of objects in a specified environment.

Usage

object_size_in_env(env = .GlobalEnv, unit = "Mb")

Arguments

env

an environment, the default is the .GlobalEnv.

unit

the units to be used in formatting and printing the size: "b", "Kb", "Mb", "Gb", "Tb", "Pb", "B", "KB", "MB", "GB", "TB" and "PB".

Value

Returns a data.table with the size of objects in the given environment

Author(s)

Jakob Gepp

Examples

DT <- object_size_in_env(env = environment())


STATWORX/helfRlein documentation built on Feb. 12, 2024, 2:21 a.m.