Learn R Programming

turner (version 0.1.5)

listsize: Size: total number of elements in a list

Description

Get the total number of elements in a list.

Usage

listsize(alist)

Arguments

alist
a list

Value

  • number of elements in alist.

See Also

lengths

Examples

Run this code
some_list = list(1:3, 4:5, 6:9)

# number of elems in 'some_list'
listsize(some_list)

Run the code above in your browser using DataLab