Vector v is c(1,2,3,4) and list x is list(5:8), what is the output of v*x[[1]]?
Answer Posted / Mukul Mishra
The output of v*x[[1]] will be a numeric vector with length 4 containing the elements: 10, 16, 22, 30. This is because element [[1]] of list x is 5 and the operation v*5 results in the first vector multiplied by 5.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers