Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 21

Gurugram University

CRYPTOGRAPHY AND SECURITY LAB


Lab Practical File

Department of Engineering and Technology

Submitted To Submitted By
Dr. Gazal Name - khushi
(Assistant professor) Class:-Cyber security
Semester: 4th Semester
Roll No. – 231031160073

Sr.No. PROG.NO. DATE EXPERIMENT NAME SIGN. REMARKS


1 1 R AS CALCULATOR
APPLICATION
a) Using with and without R
objects on console
2 b) Using mathematical
functions on console
3 c) Write an R script, to
create R objects for
calculator application and
save in a specified location in
disk.
4 2 DESCRIPTIVE STATISTICS IN R
a) Write an R script to find
basic descriptive statistics
using summary, str, quartile
function on mtcars& cars
datasets.
5 b) Write an R script to find
subset of dataset by using
subset (), aggregate ()
functions on iris dataset.
6 3 READING AND WRITING
DIFFERENT TYPES OF
DATASET
a) Reading different types of
data sets (.txt, .csv) from
Web and disk and writing in
file in specific disk location.
7 b) Reading Excel data sheet
in R.
8 c) Reading XML dataset in R.
9 4 VISUALIZATIONS
a) Find the data
distributions using box and
scatter plot.
10 b) Find the outliers using
plot.
11 c) Plot the histogram, bar
chart and pie chart on
sample data.
PROGRAM - 1
OBJECTIVE :- R AS CALCULATOR APPLICATION
(a).Using with and without R objects on console
1. Without Console :
Code :
Output :

1. With console :

2. Code & Output :


b) Using mathematical functions on console

Code & Output :


c) Write an R script, to create R objects for calculator application and save in a
specified location in disk.

Code :
Output :
PROGRAM :-2
OBJECTIVE:-DESCRIPTIVE STATISTICS IN R
a) Write an R script to find basic descriptive statistics using summary, str,
quartile function on mtcars& cars datasets.

Code :

Output :
(b).Write an R script to find subset of dataset by using subset (), aggregate ()
functions on iris dataset.
Code :
Output :
PROGRAM :-3
OBJECTIVE:- READING AND WRITING DIFFERENT TYPES OF DATASET
(a). Reading different types of data sets (.txt, .csv) from Web and disk and
writing in file in specific disk location.
Code :
Output :

(b). Reading Excel data sheet in R.


Code :
Output :
(c). Reading XML dataset in R.

Code :

Output :
PROGRAM:-4

OBJECTIVE:- VISUALIZATIONS
(a).Find the data distributions using box and scatter plot.

Code:

Output :

Code :
Output :

(B).Find the outliers using plot.

Code :

Output :
(c).Plot the histogram, bar chart and pie chart on sample data.

Code :

Output :

You might also like