1.

Which function is more verbose?(a) Lapply(b) Japply(c) Vapply(d) Zapply

Answer» The correct answer is (c) Vapply

To explain: If a programmer wants the output to be a list then lapply is used. vapply allows the programmer to specific the output type. The disadvantage of using vapply is that it is very difficult to be implemented and more verbose.


Discussion

No Comment Found

Related InterviewSolutions