where: Find where a name is defined.

Description Usage Arguments Examples

View source: R/where.r

Description

Implements the regular scoping rules, but instead of returning the value associated with a name, it returns the environment in which it is located.

Usage

1

Arguments

name

name, as string, to look for

env

environment to start at. Defaults to the calling environment of this function.

Examples

1
2
3
4
5
x <- 1
where("x")
where("t.test")
where("mean")
where("where")

pryr documentation built on May 19, 2017, 11:49 a.m.

Search within the pryr package
Search all R packages, documentation and source code