env: Get the environment

Description Usage Arguments Details Value Examples

View source: R/env.R

Description

Get the environment

Usage

1
2
3
4
env(x)

## S3 method for class 'formula'
env(x)

Arguments

x

object to get environoment from

Details

S3 returns the environment associated with an object.

For a formula object, 'env' returns the environment in the '.Environment' attribute.

Value

Environment

Examples

1
env( lhs ~ rhs ) 

formula.tools documentation built on May 2, 2019, 1:45 p.m.