APEEJAY STYA UNIVERSITY
SUBJECT: - DATA ANALYSIS WITH R
TOPIC: - LAB FILE
SUBMITTED BY: - AAKASH
ENROLLMENT NO. – ASU2022010100072
COURSE: - B. TECH(CSE)
DEPARTMENT: - SCHOOL OF ENGINEERING
AND TECHNOLOGY
SUBMITTED TO: - DR. ANU JAYALWAL
SUBMITTED DATE: - 29-April,2025
INDEX:
[Link]. TOPIC PAGE
NO.
1. Program to add two numbers 1
2. Program for arithmetic operation 1
3. Program to illustrate use of logical operators 1
4. Program to illustrate use of relational 2
operators
5. Program to print strings 2
6. Program to illustrate initialization of 2
variables
7. Program to illustrate taking input from the 3
user using readline()
8. Program to illustrate taking input from the 3
user using scan()
9. Program to illustrate printing output of R 3
program
10. R program to illustrate 3-4
printing string with variable "\n" for new
line
11. R program to illustrate 4
decision making
12. R program to demonstrate use of for loop 4
along with concatenation
13. Program to demonstrate functions 5
14. Program to illustrate different vectors 5
15. Program to plot bar graph 5-6
16. Program to plot pie graph 6
17. Program to plot histogram 7
18. Program to plot scatterplot 8-9
19. Program to boxplot 9-10
1. PROGRAM TO ADD TWO NUMBERS:
2. PROGRAM FOR ARITHEMATIC OPERATION:
3. PROGRAM TO ILLUSTRATE USE OF LOGICAL OPERATORS:
1
4. PROGRAM TO ILLUSTRATE THE USE OF RELATIONAL OPERATORS:
5. PROGRAM TO PRINT STRING:
6. PROGRAM TO ILLUSTRATE INITIALIZATION OF VARIABLES:
2
7. PROGRAM TO ILLUSTRATE TAKING INPUT FROM THE USER USING
readline():
8. PROGRAM TO ILLUSTRATE TAKING INPUT FROM THE USER USING scan():
9. PROGRAM TO ILLUSTRATE PRINTING OUTPUT OF R PROGRAM:
10. PROGRAM TO ILLUSTRATE PRINTING STRING WITH VARIABLE “\n” FOR
NEW LINE:
3
11. PROGRAM TO ILLUSTRATE DECISION MAKING:
12. PROGRAM TO DEMONSTRATE USE OF FOR LOOP ALONG WITH
CONCATENATION:
4
13. PROGRAM TO DEMONSTRATE FUNCTIONS:
14. PROGRAM TO ILLUSTRATE DIFFERENT VECTORS:
15. PROGRAM TO PLOT BAR GRAPH:
5
16. PROGRAM TO PLOT PIE CHART:
6
17. PROGRAM TO PLOT HISTOGRAM:
18. PROGRAM TO PLOT SCATTERPLOT:
7
8
19. PROGRAM TO PLOT BOXPLOT:
9
10