Len of list in r

R List Length

To get length of list in R programming, call length[] function and pass the list as argument to length function.

The syntax to call length function with list myList as argument is

length[myList]

The length function returns an integer representing the number of items in the list.

Examples

In the following program, we will create a list containing some string values and find its length programmatically using length[] function.

example.R

myList

Chủ Đề