Google News
logo
R - Quiz(MCQ)
Which function is used to automatically vectorize?
A)
mapply()
B)
lapply()
C)
happly()
D)
kapply()

Correct Answer :   mapply()


Explanation : The mapply() function can be used to automatically “vectorize” a function. What this means is that it can be used to take a function that typically only takes single arguments and create a new function that can take vector arguments.

Advertisement