1.

If the programmers want the output to be a data frame or a vector, then  ________ function is used.(a) Lapply(b) Sapply(c) Vapply(d) Zapply

Answer» Correct answer is (a) Lapply

Easiest explanation: If the programmers want the output to be a data frame or a vector, then sapply function is used whereas if the programmer wants the output to be a list then lapply is used. vapply allows the programmer to specific the output type.


Discussion

No Comment Found

Related InterviewSolutions