1. Engineering
  2. Computer Science
  3. 8131 lte to summarize a vector is a data structure...

Question: 8131 lte to summarize a vector is a data structure...

Question details

8:131 LTE To summarize: A vector is a data structure, which can constructed using the c function, and assigned toa named object using theoperator. To familiarize yourself with the vector data structure, now try to construct a couple of vectors in R and assign them to a named object, as in the example above. Vector: a, b, c, d, e,f Vector: 2.3, 1.3, na, 0 Vectors Exercises For this exercise, first research the various functions used, write down your answer, without using R. Then, check your answer using R Exercise1 Consider two vectors, x, y x-c(4,6,5,7,10,9,4,15) y-c(0,10,1,8,2,3,4,1) What is the value of: x* Exercise2 Consider two vectors, a, b a c(1,2.4,5,6) b-c(3,2,4,1,9) What is the value of: cbind(a,b) Exercise 3 Consider two vectors, a, b a-1,5,4,3.6 b-3,5,2,1,9 What is the value of: ac-b Exercise 4 Consider two vectors, a, b a-10,2,4,15 b 3.12,4,11 What is the value of: rbind(a,b) Exercise 5 Ifx c(1:12) What is the value of: dim(x) What is the value of: length(x) Exercise 6 If a c(12:5) What is the value of: is.numeric(a) Exercise7 Consider two vectors, x, y x-(12:4) What is the value of: whichis.finite(x/y)) Exercise 8 Consider two vectors, x, y x-letters1:10 y-letters[15:24
Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution