This document provides an overview of environments and functions in R. It discusses the different types of environments like the global environment, base environment and current environment. Functions have three main parts - arguments, body and environment. Lexical scoping looks up the value of symbols by searching the enclosing environment of a function. There are also different object oriented systems like S3 and S4 in R. Data structures include vectors, matrices, lists, data frames and factors.