lsos: A nicely formatted listing of objects in the R working...

Description Usage Arguments Value See Also Examples

Description

An improved listing of the objects available in R memory. Built-in function ls() does not provide information such as how much memory an object takes, which might be important if one is working with large objects. The function relies on internal function .ls_objects().

Usage

1
lsos(n = 20)

Arguments

n

A scalar indicating how many objects to print in the output. By default 20 objects will be printed in decreasing order according to the memory they require.

Value

A data frame with objects as rows and details about them in five variables: type, size, nicely formatted size, number of rows and number of columns in the object.

See Also

ls

Examples

1
2
3
4
5
6
# create some objects
x <- 1:4
y <- runif(10e6)

# inspect the objects in the memory and their details
lsos()

hstojic/hfunk documentation built on May 17, 2019, 6:16 p.m.