Reordered Questions Based on Book
Contents – Unit 3 (R Programming and
Data Analytics)
Introduction to R (General Overview)
1. What is R? Describe some of the features. Advantages of R for data analysis.
61.1 Installation of R Packages
3. Describe the steps for installing R and RStudio on a computer. And explain the interface of
RStudio briefly.
4. What are packages in R? Why are they important? How do you install and load a package
in R? Give examples.
5. Differentiate between a package and a library in R.
6. Name five commonly used R packages and their uses.
62.1 Variables and Constants in R
19. What is a variable in R? How does it differ from a constant?
15. What is a constant in R? Explain the various types of constants in R.
62.2 Data and Data Structure in R
16. What is a data structure? Describe all the 6 data structures in R.
17. Short notes on data structure
6.2.3 Control and Loop Structures in R
18. What are control structures in R? Discuss the broad categories of control structures in R.
10. What are control flow statements? Why are they important? Write an R program that
uses nested if statements.
9. Explain the use of if, else, and ifelse in R with examples.
11. Describe the types of loops in R: for, while, and repeat. Compare for and while loops in R.
Write a program using a loop to print even numbers between 1 and 20.
624 Commands and Syntax | 63 Packages and Libraries
7. What are the basic syntax rules in R?
63.1 Summary of Ready to Use Functions in R
12. What is a function in R? How is it defined and called? Differentiate between user-defined
and built-in functions in R.
13. What is the apply family in R? List different apply functions. Compare apply(), lapply(),
and sapply() with examples. When should one use tapply() or mapply()?
64 Data Processing in R
20. What is data importing? Explain the various ways in which data of different formats may
be loaded into R (Excel or CSV etc.). What common issues can arise when importing data,
and how can they be resolved?
21. What are the different formats from which data can be imported into R? Explain the
process of importing a CSV file into R with an example.
22. What are the key functions used to read Excel and text files in R?
8. Discuss different functions used for importing spreadsheet data in R.
14. Discuss how missing values may be handled in R? Is it possible to replace the missing
values?
2. What is data transformation? Explain any 3 ways in which data can be transformed in R.