Explanation:You can put an arbitrarily complicated function definition inside lapply(). 7. The _____ function takes a vector or other objects and splits it into groups determined by a factor or list of factors.
A. apply()
B. lsplit()
C. split()
D. mapply()
Answer:A
Explanation:You can put an arbitrarily complicated function definition inside lapply(). 7. The _____ function takes a vector or other objects and splits it into groups determined by a factor or list of factors.
A. apply() B. lsplit() C. split() D. mapply()
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 ?