Slide 1

Slide 1 text

R for beginners from zero Cynthia SC (June 2nd, 2023) Member of Dr. Collado’s Team

Slide 2

Slide 2 text

What is R? ● R is an open-source scripting language developed in 1993. ○ It's an alternative implementation of the S programming language (1976). ● The R environment is designed to perform complex statistical analysis and display results using visual graphics. ● The R is written in C, Fortran, and R itself. ○ Most R packages are written in the R itself, but heavy computational chucks are written in C, C++, and Fortran. ● R allows integration with Python, C, C++, .Net, and Fortran too. ● R is both a programming language and a software development environment.

Slide 3

Slide 3 text

How to start with R? You need both R and RStudio.

Slide 4

Slide 4 text

Do I need RStudio to interface with R? Do I need R to run code in RStudio? How can I run R code?

Slide 5

Slide 5 text

Is RStudio the only IDE available for R? Key Features: ● User-friendly graphical user interface (GUI). ● Great for beginners learning the R programming language for the first time. ● Integrates well with other tools such as R Shiny, Add-ons, Git Version Control, and Rmarkdown. ● Has lots of developer support.

Slide 6

Slide 6 text

Great support to produce a lot of graphs

Slide 7

Slide 7 text

Installation Pre-requisites: ● R (4.2.3) or newer, latest is 4.3.0): https://cran.r-project.org/ ● RStudio Version 2023.03.1+446 "Cherry Blossom" Release (2023-05-09) for macOS https://rstudio.com/products/rstudio/download/#download In the server: R version 4.3.0 Patched (2023-05-31 r84480) -- "Already Tomorrow" In local: R version 4.2.3 (2023-03-15) -- "Shortstop Beagle" What about the versions and flavors in R? What about the versions and flavors in RStudio? In local: 2023.03.1 Build 446 Go to help menu and then to About RStudio

Slide 8

Slide 8 text

EXPLORE the RStudio Integrated Development Environment (IDE)

Slide 9

Slide 9 text

Let’s go to RStudio 1. RStudio integrative development environment 2. Basic data types and common operations 3. Matrix and dataframe data structures

Slide 10

Slide 10 text

1. RStudio environment

Slide 11

Slide 11 text

2. Basic data types and common operations

Slide 12

Slide 12 text

3. Matrix and dataframe data structures

Slide 13

Slide 13 text

Do you need help to start? You can request a Data Science guidance sessions (DSgs) with us! Here: https://lcolladotor.github.io/bioc_team_ds/data-science-guidance-sessions.html How? Scroll to the bottom of the page where the team member list is and request a particular 25 minute session, click on Calendly and any of us will get back to you ASAP. Looks like this:

Slide 14

Slide 14 text

Learning Resources http://research.libd.org/rstatsclub/#.XpB1SNNKiL8 http://research.libd.org/rstatsclub/20 18/12/24/r_101/