_____________ function is preferred over sapply as vapply allows the programmer to specific the output type.

Linh Chi

New member
_____________ function is preferred over sapply as vapply allows the programmer to specific the output type.
A. Lapply
B. Japply
C. Vapply
D. Zapply
 
Answer: c
Explanation: Vapply is similar to sapply, but has a pre-specified type of return value, so it can be safer (and sometimes faster) to use. simplify2array() is the utility called from sapply() when simplify is not false and is similarly called from mapply().
 

Tìm kiếm

Back
Top