Capstone Project On R Studio

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 13

R.V.

INSTITUTE OF MANAGEMENT
CA 17, 36th Cross, 26th Main, 4th “T” Block, Jayanagar, Bangalore-560041.
(Autonomous Institution Affiliated to BCU)

CAPSTONE PROJECT ON R STUDIO

ADVANCED IT SKILLS
MASTER OF BUSINESS ADMINISTRATION

Submitted by: Register No:

Deepak Girish Kalyani P18FW21M0051


Gagandeep VN P18FW21M0067
Aniket Revankar P18FW21M0028

Semester II
Batch 2021-2023

Under the Guidance & Supervision of


Prof. Ankita Srivastav
Associate Professor, RVIM
Sl. No. Topics Page No.

Create A New Database Related To 10 Different


1 Students Containing, Name Of The Student, Age, 3–4
Gender, Marks In 5 Diff Subjects

2 Add Marks Related To Subject 5-6

3 Descriptive 7

Add 3 more students’ information by


following the rules:
4 a) Add 11th student at once 8–9
b) Add 12th & 13th student details together

Extract information related to


a) 10th record and 7th record
b) Extract information excluding Age & Gender
5 c) Extract information whose UGCCGPA is >8 10 - 11
d) Extract information related to the Registration
Number followed by marks in five subjects for
the first five students

6 Conclusion 12

7 Reference 13

Page no. 2
Chapter 1
Construct 10 Students’ Databases With The Help Of A Data Frame.
This Dataset Holds Information Related To The Registration Number;
Name Of The Student; Age; Gender; UGCGPA.

regno<-c(1,2,3,4,5,6,7,8,9,10)
Interpretation:
in R studio here we add the reg no. from 1 to 10. Here ‘c’ means contact.

nameofthestudent<-c('A','B','c','D','E','F','G','H','I','J')
Interpretation:
here we add the name of a student. While writing in R studio we can not give to the
space to any word like ‘nameofthestudent’. The names are A, B, C, D, E, F, G, H, I, J

age<-c(12,16,17,18,23,24,25,26,27,28)
Interpretation:
Here we add the age of the students in the students data set. As mentioned wise age of
the students will be add in the table.

gender<-c('M','M','F','F','M','M','M','F','F','M')
Interpretation:
here we add the gender of the student data set. Here ‘M’ means male and ‘F’ means
female. There are 6 male and 4 female.

ugcgpa<-c(9.6,8.1,7.4,8.4,8.0,8.2,6.7,9.1,6.9,8.2)

Page no. 3
Marks In 5 Different Subjects:
s1<-c(12,16,17,18,23,24,25,26,27,28)
s2<-c(12,16,17,18,23,24,25,26,27,28)
s3<-c(12,16,17,18,23,24,25,26,27,28)
s4<-c(12,16,17,18,23,24,25,26,27,28)
s5<-c(12,16,17,18,23,24,25,26,27,28)

Interpretation:
• here s1 means subject 1 and its marks
• here s2 means subject 2 and its marks
• here s3 means subject 3 and its marks
• here s4 means subject 4 and its marks
• here s5 means subject 5 and its marks

studentsdatabase<-data
frame(regno,nameofthestudent,age,gender,s1,s2,s3,s4,s5)
Interpretation:
This function is used to frame the data table according to our requirement. In this
table first we add reg no, name of the student, age, gender and subject 1 to subject
5 marks will be added here.

View(students data base)


View tab is used to view the students data table. It will shows the all the
studentsname , reg no, and all the information we included will shows here.

Page no. 4
Chapter 2

Add 5 columns to the existing data by passing first semester marks in each
of the five subjects.

s1<-c(13,16,17,18,23,24,25,26,27,29)
s2<-c(14,17,15,17,20,25,23,25,19,18)
s3<-c(25,25,26,27,29,12,16,17,18,22)
s4<-c(19,23,24,25,16,13,16,17,27,29)
s5<-c(17,15,14,17,26,28,19,20,21,29)
Interpretation:
here s1 means subject 1 and its marks
here s2 means subject 2 and its marks
here s3 means subject 3 and its marks
here s4 means subject 4 and its marks
here s5 means subject 5 and its marks

studentsdatabase<-data.frame(regno,nameofthestudent,age,gender,ugcgpa,s1,s2,s3,s4,s5)
Interpretation:
This function is used to frame the data table according to our requirement. In this table first we
add reg no, name of the student, age, gender and subject 1 to subject 5 marks will be added
here.

Page no. 5
Page no. 6
Chapter 3

DESCRIPTIVE

summary(studentsdatabase$age)
summary(studentsdatabase$ugcgpa)
summary(studentsdatabase$s1)
summary(studentsdatabase$s2)
summary(studentsdatabase$s3)
summary(studentsdatabase$s4)
summary(studentsdatabase$s5)

INTERPRETATION:
Here we calculated the min, mean, median, mode , max and quartiles for student data
base

Page no. 7
Chapter 4

Add 3 more students’ information by following the rules:


a) Add 11th student at once
b) Add 12th & 13th student details together

a.) row11<-c(11,'k',22,'F',8.1,23,22,24,26,28)
newstudentdatabase<-rbind(studentsdatabase,row11)

Page no. 8
b.) ADD 12TH AND 13TH STUDENT DETAILS TOGETHER
newstudentdatabase
row12<-c(12,'l',27,'F',8.4,23,22,11,12,20)
row13<-c(13,'m',26,'F',7.1,28,27,22,24,25)
newstudentdatabase<-rbind(studentsdatabase,row12,row13)

Page no. 9
Chapter 5

Extract information related to


e) 10th record and 7th record
f) Extract information excluding Age & Gender
g) Extract information whose UGCCGPA is >8
h) Extract information related to the Registration Number followed by
marks in five subjects for the first five students

a.) newstudentdatabase[c(7,10),]

b.) EXTRACT THE INFORMATION EXCLUDING AGE AND GENDER

newstudentdatabase[,c(1:2,5:10)]

Page no. 10
c.) EXTRACT THE INFORMATION OF UGCGOA >8

subset(newstudentdatabase,newstudentdatabase$ugcgpa>=8)

d.) EXTRACT THE INFORMATION RELATED TO REG NO. FOLLOWED BY


MARKS IN FIVE SUBJECTS BY FIRST FIVE STUDENTS
newstudentdatabase[1:5,c(1,6:10)]

Page no. 11
Conclusion

• R is an advanced language that performs various complex statistical computations and

calculations.

• It is widely used by data scientists and business leaders in multiple fields, from academics

to business.

• Moreover, R interprets the data in a graphical form, making it easy to interpret and

understand.

• R offers a wide variety of statistics-related libraries and provides a favourable environment

for statistical computing and design.

• In addition, the R programming language gets used by many quantitative analysts as a

programming tool since it's useful for data importing and cleaning.

Why is learning R programming important?

• It has special packages for Machine Learning, Statistical Modelling, Data Manipulation,

Data Visualization, Imputation, among other things.

• As R is open-source, you can also build your own package and enrich the R community. It

has a massive community.

• R is also used in genetics, biology, business intelligence, and other fields of study.

Page no. 12
References

Final Data Table:

Page no. 13

You might also like