I have a list of 27 data frames with different numbers of rows in each frame but the same number of columns (22). I need the min, max, and median of each column put into a vector for each frame, the result should look something like this:
frame1 = (c1min, c1max, c1median, c2min, c2max, c2median ... c22min, c22max, c22median)
frame2 = (c1min, c1max, c1median, c2min, c2max, c2median ... c22min, c22max, c22median)
...
frame27 = (c1min, c1max, c1median, c2min, c2max, c2median ... c22min, c22max, c22median)
I've generated the min of each column doing this:
> all_min = lapply(all_list, function(x){apply(x,2,min)})
Where 'all_list' is my list and 'all_min' is the vector for all the column mins in the list. I'm unsure as to how to get an numbered list of vectors (like in the example above), and how to get them properly formatted. Any ideas?
EDIT: Here's an example of one of the frames:
lx ly lz ...
1 -0.039256 -0.078644 -0.032388
2 -0.036041 -0.074536 -0.033906
3 -0.033898 -0.071544 -0.033906