January 2010
Beginner
634 pages
19h 50m
English
So far, we’ve danced around the concept of environments without explicitly defining them. Every symbol in R is defined within a specific environment. An environment is an R object that contains the set of symbols available in a given context, the objects associated with those symbols, and a pointer to a parent environment. The symbols and associated objects are called a frame.
Every evaluation context in R is associated with an environment. When R attempts to resolve a symbol, it begins by looking through the current environment. If there is no match in the local environment, R will recursively search through parent environments looking for a match.
Read now
Unlock full access