Learn R Programming

erer (version 4.0)

lss: List Objects with Their Sizes

Description

Show the name and memory size of objects in an R session.

Usage

lss(n = 5, pos = 1, decreasing = TRUE, order.by=c("Size", "Type"))

Value

Return a dataframe object with the following columns: name, type, size, prettysize, rows, and columns.

Arguments

n

number of objects to show.

pos

specifying the environment; see ls.

decreasing

sorting order.

order.by

sorting variable.

Author

Changyou Sun (edwinsun258@gmail.com)

Details

This function shows the names and sizes of objects in an R session. This is useful for managing avaiable memory in an R Session.

See Also

Examples

Run this code
  lss()
  ls()

Run the code above in your browser using DataLab