R programming program1
Aim: 1. Download and install R-Programming environment and install basic packages using
install. packages () command in R.
Procedure:
Step – 1: let’s move on to installing RStudio. To begin, go to RStudio and click
on the download button for RStudio desktop.
Step–2: Click on the link for the windows version of RStudio and save [Link] file.
Step–3: Run the .exe and follow the installation instructions.
Click Next on the welcome window.
Enter/ browse the path to the installation folder and click Next to proceed.
Select the folder for the start menu shortcut or click on do not create shortcuts and then click
Next. Wait for the installation process to complete.
Click Finish to end the installation.
Output :
Install the R Packages:-
• First, run RStudio.
• After clicking on the packages tab, click on install. The following dialog
box will appear.
• In the Install Packages dialog, write the package name you want to install
under the Packages field and then click install. This will install the
packageyousearchedfororgiveyoualistofmatchingpackagesbasedonyour
package text.
Installing
Packages: -
Loading
Packages: -
Once the package is downloaded to your computer you can access the functions and
Resources provided by the package in two
different ways: #load the package to use in
the current R session
library (package name)
Getting Help on Packages:-
"C:/Program Files/R/R-3.2.2/library"
[Link]("Package Name")
# Install the package named
"XML". [Link]("XML")