whos: List objects in an environment

Description Usage Arguments Value Author(s) See Also Examples

Description

Lists objects in a specified environment in a way that is more useful than ls

Usage

1
2
whos(all = TRUE, envir = parent.frame(), sort.by = "Bytes",
  decreasing = FALSE, omit.classes = "function")

Arguments

all

logical list all objects rather than the first 10

envir

environment the environment in which to list objects

sort.by

character sort on one of Class, Dimensions, Bytes or by Name

decreasing

logical should the sort.by be increasing or decreasing?

omit.classes

character type of objects to omit from list

Value

A data.frame, with row.names being the objects in the environment

Author(s)

Thomas P. Harte

See Also

ls, sort_df, parent.frame, environment

Examples

1
2
3
4
5
6
7
8
 # list objects in the current environment
 whos()

 # list objects in alphabetical order
 whos(sort="Name")

 # show all objects (specifically, include functions)
 whos(sort="Name", omit=NULL)

tharte/tutils documentation built on Feb. 11, 2020, 9:17 a.m.