实例 R 语言 获取列表的长度

x
 
thislist <- list("apple", "banana", "cherry")
length(thislist)
                    

输出结果

[1] 3