Get the total number of elements in a list.

listsize(alist)

Arguments

alist

a list

Value

number of elements in alist.

Author

Gaston Sanchez

See also

Examples

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

# number of elems in 'some_list'
listsize(some_list)
#> [1] 9