Hi!
I am new to R and dealing with a large array. As you can see from the image, the 52nd item in my array is a list [1x1x1]. It contains another list [1x113], and each one of the 113 elements contains a double [n x 1].
I can extract each 'double' by unlisting like so:
data=unlist(mylist[[52]] [[1]] [[2]])
"data" here is the numeric vector that I need (essentially my data).
My question is: Can I do it for many 'doubles' at once? Instead of doing the same thing over and over like:
data2=unlist(mylist[[52]] [[1]] [[2]])
data3=unlist(mylist[[52]] [[1]] [[3]])
data4=unlist(mylist[[52]] [[1]] [[4]])
data5=unlist(mylist[[52]] [[1]] [[5]]) .... and so on???
Ideally, I'd like to specify which elements I want to extract, for example [[52]] [[1]] [[3, 5]]
Sorry if I was not 100% clear but I am still trying to learn the R lingo... -_-
Thanks!!!