Hi folks,
I am trying to modify a list of data. My question is related to an earlier discussion. Let us consider the following list:
testList={{1,2,DateObject[],3},{1,DateObject[],3,DateObject[]},{"a",17}}
I want to delete all sublists, which contain the data type DateObject[]
. So the final form would be [edited]:
finalList={{"a",17}}
My approach is the following:
DeleteCases[testList, _DateObject, 2]
This removes all list elements up to level 2, but not the sublist itself!
I would appreciate any help!
Cheers,
Philipp