Page 249 - Data Science class 11
P. 249
C. State whether these statements are true or false.
1. In R, a single-element vector is always of type double. ___________
2. Raw data is another term for processed and analyzed data. ___________
3. Matrices in R can have elements arranged in a two-dimensional layout. ___________
4. The command statement is typically shown in green in R. ___________
5. Lists in R are always single-element vectors. ___________
Standard Questions (Section B)
A. Short answer type questions:
1. Write a note on manipulating the R list elements.
2. Name the six types of atomic vectors of R.
B. Long answer type questions:
1. Write a program in R to create a multi-element vector having the first ten natural numbers and print it.
2. Suppose we have two vectors, V1 = [2, 3, 0, 5] and V2 = [6, 1, 7, 0]. What will be the result of the following?
a. V1+V2 b. V1- V2
c. V1*V3 d. V1/V2
3. Write an R program to create two numeric matrices and perform arithmetic operations like addition, subtraction,
multiplication, and division.
Higher Order Thinking Skills (HOTS)
Please answer the questions below in no less than 200 words.
The following are three excellent tutorials for easy learning of R programming from scratch.
https://www.tutorialspoint.com/index.htm
https://data-flair.training/blogs/rstudio-tutorial/
http://www.sthda.com/english/wiki/r-basics-quick-and-easy
Answers
A. 1. d. 2. a. 3. a. 4. a. 5. a. 6. c. 7. a. 8. a. 9. a. 10. a.
11. a. 12. c. 13. d. 14. b. 15. a. 16. b.
B. 1. str() 2. apply() 3. array 4. byrow 5. negative
C. 1. True 2. False 3. False 4. True 5. False
Programming with R 247

