Learn R Programming

btw (version 1.0.0)

btw_this.environment: Describe the contents of an environment

Description

Describe the contents of an environment

Usage

# S3 method for environment
btw_this(x, ..., items = NULL)

Value

A string describing the environment contents with #> prefixing each object's printed representation.

Arguments

x

An environment.

...

Additional arguments are silently ignored.

items

Optional. A character vector of objects in the environment to describe.

See Also

btw_tool_env_describe_environment()

Other btw formatting methods: btw_this(), btw_this.character(), btw_this.data.frame()

Examples

Run this code
env <- new.env()
env$cyl_6 <- mtcars[mtcars$cyl == 6, ]
env$gear_5 <- mtcars[mtcars$gear == 5, ]
btw_this(env)

Run the code above in your browser using DataLab