lsa: Improved list of objects

lsaR Documentation

Improved list of objects

Description

Improved list of objects. Sorts by size by default. Adapted from https://stackoverflow.com/q/1358003/654296.

Usage

lsa(
  pos = 1,
  pattern,
  order.by = "Size",
  decreasing = TRUE,
  head = TRUE,
  n = 10
)

Arguments

pos

numeric. Position in the stack.

pattern

Regex to filter the objects by.

order.by

character. Either 'Type', 'Size', 'PrettySize', 'Rows', or 'Columns'. This will dictate how the output is ordered.

decreasing

logical. Should the output be displayed in decreasing order?

head

logical. Use head on the output?

n

numeric. Number of objects to display is head is TRUE.

Value

A data.frame with type, size in bytes, human-readable size, rows, and columns of every object in the environment.

Author(s)

Dirk Eddelbuettel, Tony Breyal

Examples

## Not run: 
a <- rnorm(100000)
b <- matrix(1, 1000, 100)
lsa()

## End(Not run)
  

Tmisc documentation built on Aug. 23, 2023, 1:07 a.m.