length

Get length

Returns the number of elements in a collection (List, Vector, Dict). This function is NOT vectorized - it always returns the count of elements. For getting the number of characters in a string, use str_nchar() instead.

Parameters

Returns

The number of elements.