[R] How to get the item in list that is a number?

Peng Yu pengyu.ut at gmail.com
Tue Nov 24 23:50:14 CET 2009


I have the following list. The second item in the list is a number.
I'm wondering how to write R code to return this information for any
list?


$`1`
integer(0)

$`2`
[1] 123

$`3`
integer(0)

$`4`
integer(0)

$`5`
integer(0)




More information about the R-help mailing list