0% found this document useful (0 votes)
242 views24 pages

Ds Practical File 11th

jensen’s men

Uploaded by

sastakulcha
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
242 views24 pages

Ds Practical File 11th

jensen’s men

Uploaded by

sastakulcha
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 24

VENKATESHWAR GLOBAL SCHOOL

Data Science (Code- 844)


PRACTICAL FILE

Submitted to:
Ms. Megha

Submitted by:
Name: Ananya Sharma
Class and section: 11 Sagitta
Roll no. : 06
Date of submission: 29.01.2024
Index

Q.1 Write a program using R programming language to print “Hello World!”.

Q.2 Write a program using R programming language to take user input and display
the values and print version of R.

Q.3 Write a program using R programming language to check prime number.

Q.4 Write a program using R programming language to check 3-digit Armstrong


number.

Q.5 Write a program using R programming language to check odd and even
number.

Q.6 Write a program using R programming language to check if the given year is
leap year or not.

Q.7 Write a program using R programming language to add 2 vectors.

Q.8 Write a program using R programming language to find maximum and minimum
value of a given vector.

Q.9 Write a program using R programming language to find levels of factor of a


given vector.

Q.10 Write a program using R programming language to divide 2 vectors.

Q.11 Write a program using R programming language to reverse the order of given
vector.

Q.12 Write a program using R programming language to convert 2 columns of a data


frame into a vector.

Q.13 Write a program using R programming language to create a 3-dimensional


array of 24 elements using the dim() function.

Q.14 Write a program using R programming language to:


a. Drop column(s) by name from a given data frame.
b. Drop row(s) by number from a given data frame.
Q.15 Write a program using R programming language to draw the bar graph with
coordinates as: 17, 20, 3, 12, 44, 60, 45, 32, 17

Q.16 Write a program using R programming language to draw the pie chart to
demonstrate the percentage of women in 7 different states of India. Coordinates for
the same are: 210000, 450000, 5200000, 100000000, 555000, 800000, 300000.
Label the name of the states as per your choice.

Q.17 Write a program using R programming language to find the mean and median
of the following values: 44, 52, 84, 65, 45, 88, 525, 55, 49, 56, 58, 56, 452, 45

Q.18 Create a data frame with 4 columns as Name, Age, Salary and Department and
add 5 values to each of the data column. Now, print the structure and summary of the
above data frame.

Q.19 Write a program using R programming language to create an array of


dimensions (3, 3, 2).

Q.20 Write a program using R programming language to check whether the given
vector contains a specific element or not.
Question 1. Write a program using R programming langauge to print
“Hello World”
Question2. Write a program using R programming language to take user input
and display the values and print version of R
Question3. Write a program using R programming language to check prime
number.
Q.4 Write a program using R programming language to check
3-digit Armstrong number.
Q.5 Write a program using R programming language to check
odd and even number.
Q.6 Write a program using R programming language to check if the
given year is leap year or not.
Q8 Write a program using R programming language to find
maximum and minimum value of a given vector.
Q.7 Write a program using R programming language to add 2 vectors.
Q9 Write a program using R programming language to find levels of
factor of a given vector.
Q10 Write a program using R programming language to divide 2
vectors.
Q11 Write a program using R programming language to reverse the
order of given vector.
Q12 Write a program using R programming language to reverse the
order of given vector.
Q13 Write a program using R programming language to create a 3-
dimensional array of 24 elements using the dim() function.
Q14A Write a program using R programming language to:
a. Drop column(s) by name from a given data frame.
Q14B. Drop row(s) by number from a given data frame.
Q16. Write a program using R programming language to draw the pie
chart to demonstrate the percentage of women in 7 different states
of India. Coordinates for the same are: 210000, 450000, 5200000,
100000000, 555000, 800000, 300000. Label the name of the states as
per your choice.
Q15. Write a program using R programming language to draw the bar
graph with coordinates as: 17, 20, 3, 12, 44, 60, 45, 32, 17
Q17 Write a program using R programming language to find the mean
and median of the following values: 44, 52, 84, 65, 45, 88, 525, 55,
49, 56, 58, 56, 452, 45
Q18 Create a data frame with 4 columns as Name, Age, Salary and
Department and add 5 values to each of the data column. Now, print
the structure and summary of the above data frame.
Q19 Write a program using R programming language to create an
array of dimensions (3, 3, 2).
Q20 Write a program using R programming language to check
whether the given vector contains a specific element or not.

You might also like