Created in 1993 by Ross Ihaka and Robert Gentleman at the University of Auckland, New Zealand.
Inspired by the S programming language.
Designed for statistical computing and data analysis.
19/2/2025
Created in 1993 by Ross Ihaka and Robert Gentleman at the University of Auckland, New Zealand.
Inspired by the S programming language.
Designed for statistical computing and data analysis.
Open-source and free under the GNU General Public License.
CRAN (Comprehensive R Archive Network) established in 1997 to distribute packages.
Over 18,000 packages available as of 2023.
Widely used in academia, industry, and data science.
Key areas: statistics, machine learning, data visualization, and bioinformatics.
Supported by a large and active community.
Extensive statistical libraries.
Data visualization capabilities (Base plot, ggplot2, Plotly, others).
Reproducible research with RMarkdown.
Integration with other languages like Python and C++.
Data analysis and cleaning.
Statistical modeling and hypothesis testing.
Data visualization (graphs, charts, and dashboards).
Report generation with RMarkdown.
Go to the official R website: https://cran.r-project.org.
Select the Windows version.
Download and run the installer.
Follow the installation wizard.
Accept the default settings.
Verify the installation by opening R from the Start menu.
Go to the RStudio website: https://www.rstudio.com/products/rstudio/download/.
Download the free version of RStudio Desktop.
Run the installer and follow the steps.
install.packages(“rmarkdown”) install.packages(“knitr”) install.packages(“tinytex”) tinytex::install_tinytex()
Open RStudio and create a new RMarkdown file (File > New File > RMarkdown).
Compile the file to HTML, PDF, or Word to ensure everything works.
A free platform to publish and share HTML documents created with RMarkdown.
No need for a web server or hosting.
Go to https://rpubs.com.
Click on Sign Up and create an account using your email or GitHub.
Create an RMarkdown file in RStudio.
Click Knit to generate an HTML file.
Click the Publish button in the Viewer pane and select Rpubs.
Each document gets a unique URL.
Share the link with colleagues or embed it in websites.
Easy to use and free.
Great for sharing reports, tutorials, and dashboards.
Encourages reproducible research.
summary(cars)
## speed dist ## Min. : 4.0 Min. : 2.00 ## 1st Qu.:12.0 1st Qu.: 26.00 ## Median :15.0 Median : 36.00 ## Mean :15.4 Mean : 42.98 ## 3rd Qu.:19.0 3rd Qu.: 56.00 ## Max. :25.0 Max. :120.00
library(datasets) data(airquality) summary(airquality) pairs(airquality)