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

contents

Function to retrieve contents of environments


Description

The contents method is used to retrieve the values stored in an environment.

Usage

contents(object, all.names)

Arguments

object

The environment (data table) that you want to get all contents from

all.names

a logical indicating whether to copy all values in as.list.environment

Value

A named list is returned, where the elements are the objects stored in the environment. The names of the elements are the names of the objects.

The all.names argument is identical to the one used in as.list.environment.

Author(s)

R. Gentleman

See Also

Examples

z <- new.env()
  multiassign(letters, 1:26, envir=z)
  contents(z)

Biobase

Biobase: Base functions for Bioconductor

v2.50.0
Artistic-2.0
Authors
R. Gentleman, V. Carey, M. Morgan, S. Falcon
Initial release

We don't support your browser anymore

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