Advanced R Cheat Sheet
Advanced R Cheat Sheet Search Path Environments Function Environments Created by: Arianne Colton and Sean Chen Search path – mechanism to look up objects, particularly functions. • Access with : search() – lists all parents of the global environment (see Figure 1) • Access any environment on the search path: onment('package:base') Figure 1 – The Search Path • Mechanism : always start the search from global environment, then inside the latest attached package environment. • New package loading with library()/require() : new package is attached right after global environment. (See Figure 2) • Name conflict in two different package : functions with the same name, latest package function will get called.
Written for
- Institution
- ISYE 6501
- Course
- ISYE 6501
Document information
- Uploaded on
- October 18, 2022
- Number of pages
- 6
- Written in
- 2022/2023
- Type
- Exam (elaborations)
- Contains
- Questions & answers
Subjects
- advanced r cheat sheet
- particularly funct
-
cheat sheet search path environments function environments created by arianne colton and sean chen search path – mechanism to look up objects
Also available in package deal