STRCUU Scientific Data
Management Training Using R
Programming Language
Dates: 24-26 February 2026
Time: 1400-1800 EAT
Main objectives for today’s this session
• Introduction to R programming language and data management
• Exploratory analysis and reporting with R Markdown
Training material link
• [Link]
tP_lVQPjzMJQ?usp=sharing
What is R and RStudio?
• RStudio provides free and open-
• R is a free statistical programming source tools
language
• Referred to as an Integrated
• Can be used by a scientist or Development Environment (IDE) for
nonscientist. R
• No need to be a statistician to use R • Rstudio features include: a console,
syntax-highlighting editor,
environment, history, tutorials, tools
• Used for data management, for plotting, packages, and help
statistical analysis, visualization space
etc.
• Rstudio provides features to make
• R is an open-source tool using R and managing R much
earlier
How is R different from Rstudio?
R RStudio
• R is a programming language • RStudio uses the R language to
used for statistical computing develop statistical programs
• You can write a program and run • Must be used alongside R
the code independently of any
other computer program
• RStudio may not be used without
R
• R may be used without RStudio
5
Downloading and installing R
and RStudio
6
R-programming and RStudio
• Type Download RStudio in Google
• Type Download R in Google
• Or, go to
• Use updated/latest version always
• [Link]
dio/download/
• After downloading, install the
application
• After downloading, install the .exe
extension
7
Note
• Detailed steps for downloading and installing R and RStudio are
shared as pdf in the training material google folder
• [Link]
tP_lVQPjzMJQ?usp=sharing
Working with R environment
R and RSTUDIO workspace
10
Updating R and RStudio
• Option 1) Download and Install the new
version of R.
• Close and restart your RStudio.
• Option 2) Windows only – use installr
package
• Go to Help --> Check for updates
(Rstudio)
>[Link]("installr")
>library(installr)
>updateR()
Basic commands
• Arithmetic: 2+3; 10/2; 5^2
• Assign values:
▪ X< -5
▪ y=10
• Functions:
▪ sqrt(16),
▪ mean (c(1,2,3))
• Help:
▪ ?mean or help(mean)
Data Structures – Vectors
• Ordered collection of elements
(same type)
• Create vectors:
▪ V<- c(1,2,3)
▪ Names<- c(“Anna”, “Ben”,
“Cate”)
• Access elements:
▪ V[2]-> 2nd element
• Useful functions: length(v);
sum(v); sort(v).
Data Structures – Data Frames
• Table-like structure (rows and
columns)
• Create:
df<-[Link](
Name=c(“Anna”, “Ben”,
“Cate”),
Age=c(23,25,30),
Score=c(90,85,95))
• Access:
df$Age, df[1, ](1st row),
df[ ,2] (2nd column)
Importing Datasets in R
• CSV files:
▪ data<- [Link](“[Link]”)
• Excel files (need readxl package):
▪ library(readxl)
▪ data<-read_excel(“[Link]”)
• View data:
▪ head(data);
▪ view(data)
Importing Datasets in R
• #Import dataset
employee< -[Link](“[Link]”)
• #Explore
▪ head(employee)
▪ summary(employee)
• #Access column
▪ employee$Gender
Procedures with .xlxs and .csv extensions
• Option 1: • Go to R
File > Import Dataset > From
excel > browse..
Reads data with .xlxs extension • Import personal data or use the
[Link] dataset
• Option 2: .csv extension
Go to Session> Set Working
Directory and choose directory,
then select the folder that contains
your dataset
R markdown in R
Go to R
Exploratory analysis
Move to EDA_23.2.26 PDF
END