Re: [R] Lists with numbers lists and strings

2013-10-18 Thread arun
Hi, Not sure this is what you wanted. lstNew <- list(Spans, lapply(lapply(Spans,`[`,1),as.character) ) str(lstNew) #List of 2  $ :List of 3   ..$ : num [1:2] 8.37e+08 8.42e+08   ..$ : num [1:2] 8.32e+08 8.37e+08   ..$ : num [1:2] 9.30e+08 9.35e+08  $ :List of 3   ..$ : chr "8.37e+08"   ..$ : chr "8

[R] Lists with numbers lists and strings

2013-10-18 Thread Alaios
Dear all, I have a list that is created like that Spans<-list( c(837e6,842e6),       c(832e6,837e6),       c(930.1e6,935.1e6)       ) I would like to include a second list that will contain the string that would correspond to the numbers at the left side. I would like thus insi