How can I delete the indeterminate from a sample table like the following:
list={{{1,2},3},{{2,2},4},{{1,5},2},{{9,2},9},{{1,10},Indeterminate},{{9,7},2},{{6,8},Indeterminate},{{9,20},3},{{10,2},Indeterminate},{{1,6},6}}?
I tried to use If statement:
Table[If[list[[n, 2]] != Indeterminate, {list[[n, 1]], list[[n, 2]]}]], {n, Length[list]}]
But it can not detect Indeterminate as an element. What can be done?
Note: In particular, I would like to remove the entire element whenever the second entry is Indeterminate, not just the symbol itself.
list /. {_, Indeterminate} :> Nothing$\endgroup$Indeterminateis always at the last position? $\endgroup$list[[n, 2]] =!= Indeterminate. $\endgroup$