Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Which console input produces the following vector in R ? (Create this so that we can manipulate it later - store it in an object
Which console input produces the following vector in R ? (Create this so that we can manipulate it later - store it in an object ' x '): x=246810121416 x=seq(2,4,6,8,10,12,14,16)x=vector(2,4,6,8,10,12,14,16)x=c(2,4,6,8,10,12,14,16)x=rep(2,4,6,8,10,12,14,16) 1 point Which code produces the transpose of vector x,a a 1x8 matrix? (Create the transpose of vector x and store it in object 'xt'): xt=inv(x)xt=det(x)xt=trans(x)xt=t(x) What is the value in the 6th element of the resulting vector, z ? Hint: After creating object 'z', request the 6th element by indexing with square brackets ( [ ]) as follows: z[6] 70 40 60 50 Create the following vector and store it in object ' y '. y=13571357 Calculate a new vector ' a ' as the sum of x+y. How many elements does resulting vector 'a' have? 128 8 64 16 1 point What is the value in the 7th element of the resulting vector, a, created in question 4? Hint: After creating object 'a', request the 7 th element by indexing with square brackets ( [ ]) as follows: a[7] 19 11 23 15
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started