Reordered Questions Unit3 R Programming
Reordered Questions Unit3 R Programming
4. What are packages in R? Why are they important? How do you install and load a package
in R? Give examples.
10. What are control flow statements? Why are they important? Write an R program that
uses nested if statements.
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?
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.