Learn R Programming

erer (version 3.1)

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"))

Arguments

n

number of objects to show.

pos

specifying the environment; see ls.

decreasing

sorting order.

order.by

sorting variable.

Value

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

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

ls.

Examples

Run this code
# NOT RUN {
  lss()
  ls()
# }

Run the code above in your browser using DataLab