La función searchpath() en R Language se usa para enumerar la ruta completa de los paquetes adjuntos a la ruta de búsqueda R.
Sintaxis: searchpath()
Parámetros:
Esta función no acepta parámetros.
Ejemplo 1:
Python3
# R program to get the full path # of attached packages in R # Calling searchpath() function searchpath()
Producción:
[1] ".GlobalEnv" [2] "C:/Program Files/R/R-2.15.2/library/stats" [3] "C:/Program Files/R/R-2.15.2/library/graphics" [4] "C:/Program Files/R/R-2.15.2/library/grDevices" [5] "C:/Program Files/R/R-2.15.2/library/utils" [6] "C:/Program Files/R/R-2.15.2/library/datasets" [7] "C:/Program Files/R/R-2.15.2/library/methods" [8] "Autoloads" [9] "C:/PROGRAM~1/R/R-215~1.2/library/base"
Ejemplo 2:
Python3
# R program to get the full path # of attached packages in R # Attaching datasets to path attach(BOD) attach(airquality) # Calling searchpath() function searchpath()
Producción:
[1] ".GlobalEnv" [2] "BOD" [3] "airquality" [4] "C:/Program Files/R/R-2.15.2/library/stats" [5] "C:/Program Files/R/R-2.15.2/library/graphics" [6] "C:/Program Files/R/R-2.15.2/library/grDevices" [7] "C:/Program Files/R/R-2.15.2/library/utils" [8] "C:/Program Files/R/R-2.15.2/library/datasets" [9] "C:/Program Files/R/R-2.15.2/library/methods" [10] "Autoloads" [11] "C:/PROGRAM~1/R/R-215~1.2/library/base"
Publicación traducida automáticamente
Artículo escrito por nidhi_biet y traducido por Barcelona Geeks. The original can be accessed here. Licence: CCBY-SA