Intermediate R
Q42 / 100

What does the apply family function "sapply()" do?

Correct! Well done.

Incorrect.

The correct answer is A) Applies a function over a list/vector and simplifies the result to a vector or matrix when possible

A

Correct Answer

Applies a function over a list/vector and simplifies the result to a vector or matrix when possible

Explanation

sapply() is a user-friendly version of lapply() that attempts to simplify the output to a vector, matrix, or array when the results allow.

Progress
42/100