Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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.

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.

Value

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

Author(s)

Changyou Sun (cs258@.msstate.edu)

See Also

Examples

lss()
  ls()

erer

Empirical Research in Economics with R

v3.0
GPL (>= 2)
Authors
Changyou Sun <cs258@msstate.edu>
Initial release
2020-04-30

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.