V Viết Mạnh Member Sep 20, 2021 #1 Which of the following extracts first four element from the following R vector? Code: > x <- c("a", "b", "c", "c", "d", "a") A. x[0:4] B. x[1:4] C. x[0:3] D. x[4:3]
Which of the following extracts first four element from the following R vector? Code: > x <- c("a", "b", "c", "c", "d", "a") A. x[0:4] B. x[1:4] C. x[0:3] D. x[4:3]
N Nguyễn Thiệu Vy Member Sep 20, 2021 #2 Answer: b Explanation: The multiple successive elements which we want to extract will be in the format of variable[index value of the start element:index value of the last element] in R script. Upvote 0 Downvote
Answer: b Explanation: The multiple successive elements which we want to extract will be in the format of variable[index value of the start element:index value of the last element] in R script.