It sounds more like you want something like this
The sapply(ss, "[", 1) grabs the first element from each part of the list called ss. Then we want to bind those together as columns so we use cbind. But we want to bind the elements of a list together so we need to use do.call so those get passed as the parameters to cbind.Code:do.call(cbind, sapply(ss, "[", 1))





Reply With Quote

