I have a list of data with nested lists of different length in the following format:
dataLis={{1,2,3,4,5,6,7,5,4},{2,3,1,5},{4,5,6,7,7,8,9}}
Now I have calculated the maximal possible length of all nested lists (based on another data set) and formated that list in the following format
lengthLis={{5},{3},{3}}
Now I would like to cut the dataLis based on lengthLis. I tried the following formula
Outer[Take,dataLis, -lengthLis]
but it does not work. Does anyone have a hint?
MapThread[]
might be more suitable… $\endgroup$Inner[]
… $\endgroup$