sizeof: Object size

View source: R/sizeof.R

sizeofR Documentation

Object size

Description

This function calculates the object size

Usage

sizeof(x, unit)

## Default S3 method:
sizeof(x, unit = "mb")

## S3 method for class 'data.frame'
sizeof(x, unit = "mb")

## S3 method for class 'environment'
sizeof(x, unit = "mb")

Arguments

x

object vector, data.frame, environment, ...

unit

size unit; "B", "KB", "MB", "GB"

Examples

## Not run: 
sizeof(x = globalenv(), unit = "kb")

## End(Not run)

seokhoonj/vuw documentation built on Jan. 30, 2024, 11:36 a.m.