Intermediate R
Q44 / 100

What does "lapply(x, f)" return?

Correct! Well done.

Incorrect.

The correct answer is B) A list, where each element is the result of applying f to the corresponding element of x

B

Correct Answer

A list, where each element is the result of applying f to the corresponding element of x

Explanation

lapply() always returns a list of the same length as x, with each element being f applied to the corresponding element of x.

Progress
44/100