Many packages can be installed from the CRAN or Bioconductor repositories. To use additional packages will require installation. However, the more you work with R, you will come to realize that there is a cornucopia of R packages that offer a wide variety of functionality. Previously we have introduced you to functions from the standard base packages. SessionInfo () #Print version information about R, the OS and attached or loaded packages # OR search () #Gives a list of attached packages You can check what libraries are loaded in your current R session by typing into the console: It is somewhat counter-intuitive to load a package using the library() function and so you can see how confusion can arise. The terms package and library are sometimes used synonymously and there has been discussion amongst the community to resolve this. The directories in R where the packages are stored are called the libraries. Base packages contain the basic functions that allow R to work, and enable standard statistical and graphical functions on datasets for example, all of the functions that we have been using so far in our examples. ![]() There are a set of standard (or base) packages which are considered part of the R source code and automatically available as part of your R installation. There are 10,000+ user contributed packages and growing. Packages are collections of R functions, data, and compiled code in a well-defined format, created to add specific functionality. Demonstrate how to load a library and how to find functions specific to a package.Explain different ways to install external R packages.Packages and libraries View on GitHubĪpproximate time: 25 min Learning Objectives ![]() Packages and libraries | Introduction to R Skip to the content.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |