Loading, please wait...

A to Z Full Forms and Acronyms

What are the Packages in the R programming language?

Nov 28, 2021 #RLanguage #Programming, 768 Views
In this article, you will learn about the packages in the R programming language.

What are the Packages in the R programming language?

Packages

It is a collection of predefined functions defined in the library. 

R installs all the packages during the time of R installation. It uses in the program to maximize the approach of the reusability and less code. The R packages are developed externally and imported into the R environment. The users can add more R packages into the environment according to the need or for a specific reason. The packages of the R manages by the R community network known as CRAN. There are so many external packages of the R languages are available. The users can use these packages whenever needed. The most famous R package is ggplot2. 

 

Where does the user find the R packages? 

The packages are available on the internet from different sources. The R packages are also available in trusted repositories. The user can download these packages from sources. 

The two resources are: 

CRAN (Comprehensive R Archive Network): CRAN is the official R community. It handles the network and web servers. It also manages the packages and new addition in the code. 

GitHub: The people share the packages on Github. There are many such repositories available. The user can download the R packages from the trusted repositories. 

 

Packages the user can download the available online resources:

R Packages that are useful in loading the data from the external resources.

  • RSQlite: This package uses to read the data from the Relational database. 
  • DBI: This package uses to set up the communication between the relational database and R language. 
  • Haven: This package uses to read and write R from SAS.

R Packages that are useful in Data Manipulation:

  • stringr: This package uses in manipulating the string and characters. 
  • Dplyr: This package uses to manipulate the data, generate the SQL queries, and provide shortcuts to ingress the data. 
  • lubridate: This package uses in working with data and time. 

R Packages that are useful in Web:

  • XML: This package uses to read and write the XML document in R language. 
  • Jsonlite: This package uses to read the JSON Table.

R Packages that are useful in Data Visualization:

  • googlevis: This package uses to use the google visualization tool in R language. 
  • Rgl: This package uses to work in the 3D environment.

 

How do users find all the packages available in the market?

Run the available.packages() command to find the list of all the available packages in the CRAN network. 

 

How do the users can install the R packages? 

Run the install.packages() to install the R packages. 

A to Z Full Forms and Acronyms