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.
Escuela, estudio y materia
- Institución
- ISYE 6501
- Grado
- ISYE 6501
Información del documento
- Subido en
- 18 de octubre de 2022
- Número de páginas
- 6
- Escrito en
- 2022/2023
- Tipo
- Examen
- Contiene
- Preguntas y respuestas
Temas
- 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
Documento también disponible en un lote