R: Search for an object

where.env {asreml} | R Documentation

## Search for an object

### Description

Function that search for an object in an environment hierarchy.

### Usage

    where.env(name, env = parent.frame(), alt.env = NULL)

### Arguments

`name` | The name of the object of interest. If the object is not found then an error message is printed and execution terminated via `stop(...)`.
`env` | The environment to start searching in (if not found in this environment it traverses up the tree, so it looks next in the parent of `env`, etc.).
`alt.env` | An alternative environment to search in, if name is not found in `env` and `alt.env` is not `NULL`, then the function will also search the tree starting at `alt.env`.

[Package asreml version 4.2.0.480 Index]