Explanation:The combination of split() and a function like lapply() or sapply() is a common paradigm in R. 8. Which of the following is valid body of split function ?
A. function (x, f)
B. function (x, drop = FALSE, …)
C. function (x, f, drop = FALSE, …)
D. All of the mentioned
Answer:A
Explanation:The combination of split() and a function like lapply() or sapply() is a common paradigm in R. 8. Which of the following is valid body of split function ?
A. function (x, f) B. function (x, drop = FALSE, …) C. function (x, f, drop = FALSE, …) D. All of the mentioned
Explanation:x is a vector (or list) or data frame. 9.What will be the output of the following code ?