Linked Questions

4 votes
1 answer
412 views

I have a list of french stopwords: ...
james's user avatar
  • 3,103
2 votes
0 answers
798 views

I have two Lists: L = {1,2,3,4,5} and K = {1,4}. I would like to delete the elements of K (...
Ni Ko's user avatar
  • 31
1 vote
4 answers
242 views

the Complement gives result in standard order. But that's not what I want. I want it to keep the original order. say I have a list ...
matheorem's user avatar
  • 17.7k
1 vote
1 answer
381 views

Mathematica allows Deleting multiple objects from a list given their position. However, if I don't know their positions (finding their positions in the list is too costly if the list is long), how can ...
Iconoclast's user avatar
1 vote
0 answers
156 views

I have a list of lists A={{1,2},{3,6},{7,8},{5,0}}, and another list of lists B={{1,2},{5,0}}. If any list in B is also in A, I want to remove them from A. E.g.,Taking {1,2} and {5,0} out of A to get ...
I A's user avatar
  • 23
3 votes
1 answer
102 views

I would like to remove the element of A1 from the list B1: How I can do that? Thank you! A1= {{5, 6}, {4, 5}, {5, 4}} ...
Mehdi Ebadi's user avatar
39 votes
11 answers
7k views

There are two lists {a, b, c, a, d, a, e} and {a, c, a}. I need to remove those elements from the first list which appears in a second list, to get {b, d, a, e}
Karus's user avatar
  • 391
24 votes
13 answers
2k views

Given two lists like list1 = {{1, 1}, {2, 4}, {3, 9}, {4, 16}}; list2 = {{2, 6}, {3, 9}, {4, 12}, {5, 15}}; I would like to produce an output like ...
Phillip Dukes's user avatar
23 votes
10 answers
2k views

DeleteDuplicates works fine but leaves a single copy of the duplicated item. I need to remove all items that occur more than once i.e. {{1,2},{1,2},{3,4}} -> ...
Boris's user avatar
  • 431
13 votes
8 answers
1k views

Suppose that myData is a list of sublists. Each sublist has a length of one or greater and contains any number of replicates of the integers 1, 2, 3, and 4. I ...
Andrew's user avatar
  • 11k
12 votes
7 answers
891 views

I want to keep the original order of l1: ...
MiKK's user avatar
  • 573
8 votes
5 answers
997 views

Consider this example: Complement[{a, y, c, d, e}, {a, c}, {d}] (*{e, y}*) However, I was expecting the result to be: ...
Basheer Algohi's user avatar
5 votes
4 answers
1k views

If I have a list of numbers {1, 2, 4, 70, 11, 20, 56, 79}, is there a way to remove the list {2, 4, 56} from that list? In my ...
Jan Eerland's user avatar
  • 2,021
11 votes
2 answers
740 views

Is there any way to instruct Complement to skip the sorting part? If the answer is no (likely), the next question would be: how can I remove from a sorted list ...
Hector's user avatar
  • 6,488
3 votes
3 answers
275 views

I have a set: $$A=\{\{1,2,3\},\{1,3,2\},\{2,1,3\},\{2,3,1\},\{3,1,2\},\{3,2,1\}\}$$ I want to drop elements found in sets B and C from A. $$B=\{\{1,3,2\},\{2,1,3\}\}$$ $$C=\{\{3,1,2\},\{3,2,1\}\}$$ ...
Math-babylon's user avatar

15 30 50 per page