Open navigation menu
Close suggestions
Search
Search
en
Change Language
Upload
Sign in
Sign in
Download free for days
0 ratings
0% found this document useful (0 votes)
19 views
5 pages
Introduction To R Programming PYQ 2022 by CSHUB
DU PYQ
Uploaded by
anjansingh100
AI-enhanced title
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as PDF or read online on Scribd
Download
Save
Save Introduction to R Programming PYQ 2022 By CSHUB For Later
Share
0%
0% found this document useful, undefined
0%
, undefined
Print
Embed
Report
0 ratings
0% found this document useful (0 votes)
19 views
5 pages
Introduction To R Programming PYQ 2022 by CSHUB
DU PYQ
Uploaded by
anjansingh100
AI-enhanced title
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as PDF or read online on Scribd
Carousel Previous
Carousel Next
Download
Save
Save Introduction to R Programming PYQ 2022 By CSHUB For Later
Share
0%
0% found this document useful, undefined
0%
, undefined
Print
Embed
Report
Download
Save Introduction to R Programming PYQ 2022 By CSHUB For Later
You are on page 1
/ 5
Search
Fullscreen
+ Introduction to R Programming (SEC) : B.Sc. (H) Computer Science = TY: Maximum Marks : 25 V— Write your Roll No. on the top immediately on receipt of this question paper. ‘All parts of Question 1 (Part A) are compulsory. Attempt any three questions from Part B. a, All questions in Part B carry equal marks.Ua - (by Write R statement to extract the fows from a data frame “df” that does not have missing : a) (c) Write the output for statements 1 and 2 in the following R script. ¥ < e(2, 1,5, 7, 8,3, 2,4, 5) tength(y} <4 printty) ®statement | length(y) Printly) #statement 2 Q) (d) For the given factor f <- factor(e(“abe", “abe”, "cab", “bac", “abe”, “cab”, “cab")), what will table(f) return? (2) te} What are the two compulsory files in a package directory structure” (2) (2) What is the difference between the functions “ead.esv” and “read.csy2"? (2) 1029 3 PART B 2. Consider ‘Student’ table in a MySQL database ‘dbl’: Student(roll_no, name, city, course) Write R script to perform the following tasks (i) Load relevant packages to conmect with the database. (ii) Establish the connection with the “dbl” database, (iii) Display all tables of the database “dbl” (iv) Display the total number of students from the “Student” table. (¥) Close the database connection, (3) 3. (a) Write output for the following command © (2) switch (5% /%2, sum(2:8), summary(e(“a", “b")), sample(10, 5)) (b) Given a list L as: Ls list a=2, b=}, twin = of trip = of PTO1029 4 What will be the output of following R tatomeny, () unlist(L) . (i) lapply(L, length) 44) sapply(L, length) Q) 4 Consider the following data frame “df” (+2 , +242) ; Write R seript to perform the following : (1) Display the rows of “df where Class is “A 6) Display the total values for each class 1029 5 (iii) Create a suitable plot to show the statistics! summary of all values with respeci to (heir class. $. (a) Given a data frame “rect” contamning the length: and breadth of five rectangles and a function “rect_area”™ to compute the area of rectangles as rect <+ datuiframe(Lme(i0, $:5,.6, 718, 7) Beo(6, 4, 1.2, 3.49) rect_atea <+ function(a, b) { atb Write an R statement to create @ piekage called compute the area of rectangles using “my area” to ond given dato frame and function, (b) For the givem vectors y7 and “Ty”, x <= matrix(rep( 3, cach =2), nrow=3. nev yet matrixtrep(l:3, fength out=6). BF vw?1029 6 What will be the output of W) x 8% y (i) x © uy) Pa 6. Consider the following dataset that shows the number of times the tasks $ are performed by either P1, p2 er jointly by PT and P2; \ ‘Cleaning Dishes g to | Finarices Daving I Hondaya Write RB seript to: (1) Find the tasks which are performed more by the PI than the P2 4029 1 (ii) Display the tasks that are jointly performed by Pi and P2. (iii) Give a suitable plot to show the frequency of each task performed by Pl and P2. Give appropriate labels and legends 7 (a) Write R seript to read a file “my_file.txt™: (i) headers as in input file, (ii) separator as new line character, (iii) indicate blank rows as missing values, (iv) quoting strings as **. () @) (b) What will be the output of *£(S)°? Function “ft de f< fined as follows : ~ function(s) f <- funetion(x)1029 8 print(x*2) } f(x) + 1
You might also like
Statistical Computing II-slide
PDF
No ratings yet
Statistical Computing II-slide
279 pages
STATISTICS WITH R PROGRAMMING Question Paper PDF
PDF
89% (9)
STATISTICS WITH R PROGRAMMING Question Paper PDF
5 pages
Krish Bhatia BAS Assignment
PDF
No ratings yet
Krish Bhatia BAS Assignment
63 pages
Rstudio Divya
PDF
No ratings yet
Rstudio Divya
68 pages
Data Science Lab Manual
PDF
No ratings yet
Data Science Lab Manual
40 pages
5th Sem March-April 2024 Statistical Computinf and 'R' Programming
PDF
No ratings yet
5th Sem March-April 2024 Statistical Computinf and 'R' Programming
2 pages
Certificate: Alard College of Business Studies
PDF
No ratings yet
Certificate: Alard College of Business Studies
55 pages
21-22 Sem1 Final
PDF
No ratings yet
21-22 Sem1 Final
6 pages
R Assignment 1
PDF
No ratings yet
R Assignment 1
10 pages
Ait362 Programming in R, January 2024
PDF
No ratings yet
Ait362 Programming in R, January 2024
3 pages
Previous QP
PDF
No ratings yet
Previous QP
9 pages
R Slips
PDF
No ratings yet
R Slips
10 pages
Lab Record
PDF
No ratings yet
Lab Record
21 pages
Problem Set 1: Introduction To R - Solutions With R Output: 1 Install Packages
PDF
No ratings yet
Problem Set 1: Introduction To R - Solutions With R Output: 1 Install Packages
24 pages
Foha - R
PDF
No ratings yet
Foha - R
34 pages
BDS306C
PDF
No ratings yet
BDS306C
4 pages
Lab 1 22.7
PDF
No ratings yet
Lab 1 22.7
40 pages
Data - Analysis - With - R - 24
PDF
No ratings yet
Data - Analysis - With - R - 24
47 pages
R Programing Bhagu
PDF
No ratings yet
R Programing Bhagu
40 pages
Statistics With R
PDF
No ratings yet
Statistics With R
5 pages
21ACS482
PDF
No ratings yet
21ACS482
6 pages
R Programmimg Lab FIle
PDF
No ratings yet
R Programmimg Lab FIle
35 pages
June-July2024 22
PDF
No ratings yet
June-July2024 22
3 pages
Da Session 4
PDF
No ratings yet
Da Session 4
75 pages
2 Undefined
PDF
No ratings yet
2 Undefined
86 pages
Arunav Da Prac
PDF
No ratings yet
Arunav Da Prac
55 pages
Introduction To R Exercise 1
PDF
No ratings yet
Introduction To R Exercise 1
12 pages
Test Papers-1
PDF
No ratings yet
Test Papers-1
5 pages
Big Data Lab R Code With Output
PDF
No ratings yet
Big Data Lab R Code With Output
13 pages
Wa0003.
PDF
No ratings yet
Wa0003.
9 pages
R Programming Notes
PDF
No ratings yet
R Programming Notes
23 pages
Question Paper 1 Answers (R) by Siddu
PDF
No ratings yet
Question Paper 1 Answers (R) by Siddu
17 pages
B.Sc. H Mathematics Comp KG9xJkP
PDF
No ratings yet
B.Sc. H Mathematics Comp KG9xJkP
4 pages
Stat 1261/2260: Principles of Data Science (Fall 2021) Assignment 1: R and Rstudio
PDF
No ratings yet
Stat 1261/2260: Principles of Data Science (Fall 2021) Assignment 1: R and Rstudio
10 pages
Unit 2 R
PDF
No ratings yet
Unit 2 R
16 pages
Assignment 1
PDF
No ratings yet
Assignment 1
8 pages
DAR Question Bank (All Module)
PDF
No ratings yet
DAR Question Bank (All Module)
6 pages
R Manual
PDF
No ratings yet
R Manual
10 pages
Unit I R Programming
PDF
No ratings yet
Unit I R Programming
6 pages
W1 Class Overview and R Basics
PDF
No ratings yet
W1 Class Overview and R Basics
33 pages
Rintro
PDF
No ratings yet
Rintro
14 pages
R - SEC - 2022 - Solution DU CBCS
PDF
No ratings yet
R - SEC - 2022 - Solution DU CBCS
6 pages
Exercises Ss
PDF
No ratings yet
Exercises Ss
12 pages
Internal Assessment
PDF
No ratings yet
Internal Assessment
2 pages
R Programming Interview Questions-1
PDF
No ratings yet
R Programming Interview Questions-1
20 pages
Test 1 - Questions
PDF
No ratings yet
Test 1 - Questions
4 pages
173 - Prabhakar Pal-R Assignment
PDF
No ratings yet
173 - Prabhakar Pal-R Assignment
9 pages
Linear Regression Analysis HUDM 5122: Introduction To R Johnny Wang
PDF
No ratings yet
Linear Regression Analysis HUDM 5122: Introduction To R Johnny Wang
17 pages
(QP) R
PDF
No ratings yet
(QP) R
8 pages
Programming With R: Lecture #4
PDF
No ratings yet
Programming With R: Lecture #4
34 pages
R Lab File Deepak
PDF
No ratings yet
R Lab File Deepak
27 pages
Assignment 1-2
PDF
No ratings yet
Assignment 1-2
4 pages
A1rib T4
PDF
No ratings yet
A1rib T4
5 pages
DSE (Week 1 Assignment)
PDF
No ratings yet
DSE (Week 1 Assignment)
4 pages
Engineering Data Analysis
PDF
No ratings yet
Engineering Data Analysis
5 pages
JNTU KAKINADA - B.Tech - STATISTICS WITH R PROGRAMMING R16 R1621051102017 FR 200
PDF
No ratings yet
JNTU KAKINADA - B.Tech - STATISTICS WITH R PROGRAMMING R16 R1621051102017 FR 200
5 pages
Introduction To R: 1 Getting Started
PDF
No ratings yet
Introduction To R: 1 Getting Started
14 pages
R - Programming: Assignment
PDF
No ratings yet
R - Programming: Assignment
3 pages
R Short Tutorial
PDF
No ratings yet
R Short Tutorial
5 pages