What does the lengths() function do in R?
A. Returns the number of elements in each list element
B. Computes the lengths of strings in a character vector
C. Calculates the length of a numeric vector
D. Counts the number of elements in a list
Answer: Option A
Join The Discussion